3DS: Enable speedup with new ctrulib

This commit is contained in:
Jeffrey Pfau 2015-10-20 19:40:27 -07:00
parent 35b5101f3c
commit 6b4e37a4c6
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,7 @@ static void _gameLoaded(struct GBAGUIRunner* runner) {
if (runner->context.gba->memory.hw.devices & HW_GYRO) { if (runner->context.gba->memory.hw.devices & HW_GYRO) {
HIDUSER_EnableGyroscope(); HIDUSER_EnableGyroscope();
} }
osSetSpeedupEnable(true);
#if RESAMPLE_LIBRARY == RESAMPLE_BLIP_BUF #if RESAMPLE_LIBRARY == RESAMPLE_BLIP_BUF
double ratio = GBAAudioCalculateRatio(1, 59.8260982880808, 1); double ratio = GBAAudioCalculateRatio(1, 59.8260982880808, 1);
@ -202,6 +203,7 @@ static void _gameUnloaded(struct GBAGUIRunner* runner) {
CSND_SetPlayState(9, 0); CSND_SetPlayState(9, 0);
csndExecCmds(false); csndExecCmds(false);
} }
osSetSpeedupEnable(false);
if (runner->context.gba->memory.hw.devices & HW_TILT) { if (runner->context.gba->memory.hw.devices & HW_TILT) {
HIDUSER_DisableAccelerometer(); HIDUSER_DisableAccelerometer();