See https://github.com/hrydgard/ppsspp/blob/master/UI/MainScreen.cpp#L368