@@ -36,10 +36,10 @@ static u8 arm7RamBak[0xC0];
3636static u16 * vramBak = (u16 * )INGAME_MENU_EXT_LOCATION + (0x18200 /sizeof (u16 ));
3737static u16 * bmpBuffer = (u16 * )INGAME_MENU_EXT_LOCATION ;
3838
39- #define gameSpeedCount 5
40- static const char * gameSpeedText [ gameSpeedCount ] = {"0.50x " , "0.75x " , "0.9x " , "1x " , "1.2x (no 3D) " };
41- static int gameSpeeds [ gameSpeedCount ] = {30000 , 45000 , 50 , 60000 , 75000 };
42- static int gameSpeed = 3 ;
39+ #define refreshRateCount 5
40+ static const char * refreshRateText [ refreshRateCount ] = {"29.9hz " , "44.9hz " , "50hz " , "59.9hz " , "74.9hz no3D " };
41+ static int refreshRates [ refreshRateCount ] = {30000 , 45000 , 50 , 60000 , 75000 };
42+ static int refreshRate = 3 ;
4343#else
4444cardengineArm9 * volatile ce9 = NULL ;
4545
@@ -423,7 +423,7 @@ static void optionsMenu(s32 *mainScreen, u32 consoleModel) {
423423 optionsItems [optionsItemCount ++ ] = OPTIONS_BRIGHTNESS ;
424424 #ifndef B4DS
425425 optionsItems [optionsItemCount ++ ] = OPTIONS_VOLUME ;
426- optionsItems [optionsItemCount ++ ] = OPTIONS_GAME_SPEED ;
426+ optionsItems [optionsItemCount ++ ] = OPTIONS_REFRESH_RATE ;
427427 optionsItems [optionsItemCount ++ ] = OPTIONS_CLOCK_SPEED ;
428428 optionsItems [optionsItemCount ++ ] = OPTIONS_VRAM_MODE ;
429429 #endif
@@ -452,8 +452,8 @@ static void optionsMenu(s32 *mainScreen, u32 consoleModel) {
452452 optionPercent = (u8 )(sharedAddr [6 ] >> 16 ) * 100 / 31 ;
453453 isString = false;
454454 break ;
455- case OPTIONS_GAME_SPEED :
456- optionValue = (unsigned char * )gameSpeedText [ gameSpeed ];
455+ case OPTIONS_REFRESH_RATE :
456+ optionValue = (unsigned char * )refreshRateText [ refreshRate ];
457457 break ;
458458 case OPTIONS_CLOCK_SPEED :
459459 optionValue = igmText .optionsValues [3 + ((REG_SCFG_CLK == 0 ? scfgClkBak : REG_SCFG_CLK ) & 1 )];
@@ -540,26 +540,26 @@ static void optionsMenu(s32 *mainScreen, u32 consoleModel) {
540540 }
541541 break ;
542542 }
543- case OPTIONS_GAME_SPEED :
544- const int prevGameSpeed = gameSpeed ;
543+ case OPTIONS_REFRESH_RATE :
544+ const int prevRefreshRate = refreshRate ;
545545 if (KEYS & KEY_LEFT ) {
546- gameSpeed -- ;
547- if (gameSpeed < 0 ) gameSpeed = 0 ;
546+ refreshRate -- ;
547+ if (refreshRate < 0 ) refreshRate = 0 ;
548548 } else {
549- gameSpeed ++ ;
550- if (gameSpeed == gameSpeedCount ) gameSpeed = gameSpeedCount - 1 ;
549+ refreshRate ++ ;
550+ if (refreshRate == refreshRateCount ) refreshRate = refreshRateCount - 1 ;
551551 }
552- if (gameSpeed != prevGameSpeed ) {
553- sharedAddr [0 ] = gameSpeeds [ gameSpeed ];
552+ if (refreshRate != prevRefreshRate ) {
553+ sharedAddr [0 ] = refreshRates [ refreshRate ];
554554 sharedAddr [4 ] = 0x41535046 ; // FPSA
555555 while (sharedAddr [4 ] == 0x41535046 ) {
556556 while (REG_VCOUNT != 191 ) mySwiDelay (100 );
557557 while (REG_VCOUNT == 191 ) mySwiDelay (100 );
558558 }
559559 if (sharedAddr [0 ] == 0xFFFFFFFF ) {
560- gameSpeed = prevGameSpeed ;
560+ refreshRate = prevRefreshRate ;
561561 } else {
562- DC_FlushRange (& gameSpeed , 4 );
562+ DC_FlushRange (& refreshRate , 4 );
563563 }
564564 }
565565 break ;
0 commit comments