0.9.4+ branch: add Lag Reduction to the menu
This commit is contained in:
parent
973bbe530e
commit
a7ac71efee
|
@ -140,6 +140,8 @@ void wxTest() {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern bool fixCycleCount;
|
||||||
|
|
||||||
const int kGapNone = 0;
|
const int kGapNone = 0;
|
||||||
const int kGapBorder = 5;
|
const int kGapBorder = 5;
|
||||||
const int kGapNDS = 64; // extremely tilted (but some games seem to use this value)
|
const int kGapNDS = 64; // extremely tilted (but some games seem to use this value)
|
||||||
|
@ -1509,8 +1511,7 @@ int _main()
|
||||||
GetPrivateProfileString("Watches", str, "", &rw_recent_files[i][0], 1024, IniName);
|
GetPrivateProfileString("Watches", str, "", &rw_recent_files[i][0], 1024, IniName);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool fixCycleCount;
|
fixCycleCount = (bool)GetPrivateProfileInt("Timings", "LagReduction", 0, IniName) != 0;
|
||||||
fixCycleCount = GetPrivateProfileInt("Timings", "LagReduction", 0, IniName) != 0;
|
|
||||||
|
|
||||||
//i think we should override the ini file with anything from the commandline
|
//i think we should override the ini file with anything from the commandline
|
||||||
CommandLine cmdline;
|
CommandLine cmdline;
|
||||||
|
@ -2560,6 +2561,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
//Gray the recent ROM menu item if there are no recent ROMs
|
//Gray the recent ROM menu item if there are no recent ROMs
|
||||||
DesEnableMenuItem(mainMenu, ID_FILE_RECENTROM, RecentRoms.size()>0);
|
DesEnableMenuItem(mainMenu, ID_FILE_RECENTROM, RecentRoms.size()>0);
|
||||||
|
|
||||||
|
DesEnableMenuItem(mainMenu, IDC_LAGREDUCTION, (movieMode == MOVIEMODE_INACTIVE));
|
||||||
|
|
||||||
//Updated Checked menu items
|
//Updated Checked menu items
|
||||||
|
|
||||||
//Pause
|
//Pause
|
||||||
|
@ -2626,8 +2629,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
|
|
||||||
MainWindow->checkMenu(IDC_STATEREWINDING, staterewindingenabled == 1 );
|
MainWindow->checkMenu(IDC_STATEREWINDING, staterewindingenabled == 1 );
|
||||||
|
|
||||||
//Language selection
|
|
||||||
MainWindow->checkMenu(IDC_BACKGROUNDPAUSE, lostFocusPause);
|
MainWindow->checkMenu(IDC_BACKGROUNDPAUSE, lostFocusPause);
|
||||||
|
MainWindow->checkMenu(IDC_LAGREDUCTION, fixCycleCount);
|
||||||
|
|
||||||
//Save type
|
//Save type
|
||||||
const int savelist[] = {IDC_SAVETYPE1,IDC_SAVETYPE2,IDC_SAVETYPE3,IDC_SAVETYPE4,IDC_SAVETYPE5,IDC_SAVETYPE6,IDC_SAVETYPE7};
|
const int savelist[] = {IDC_SAVETYPE1,IDC_SAVETYPE2,IDC_SAVETYPE3,IDC_SAVETYPE4,IDC_SAVETYPE5,IDC_SAVETYPE6,IDC_SAVETYPE7};
|
||||||
|
@ -2689,8 +2692,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
WritePrivateProfileString("Watches", str, &rw_recent_files[i][0], IniName);
|
WritePrivateProfileString("Watches", str, &rw_recent_files[i][0], IniName);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool fixCycleCount;
|
WritePrivateProfileInt("Timings", "LagReduction", (int)fixCycleCount, IniName);
|
||||||
WritePrivateProfileInt("Timings", "LagReduction", fixCycleCount, IniName);
|
|
||||||
|
|
||||||
ExitRunLoop();
|
ExitRunLoop();
|
||||||
}
|
}
|
||||||
|
@ -3534,6 +3536,11 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
WritePrivateProfileInt("Focus", "BackgroundPause", (int)lostFocusPause, IniName);
|
WritePrivateProfileInt("Focus", "BackgroundPause", (int)lostFocusPause, IniName);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
case IDC_LAGREDUCTION:
|
||||||
|
fixCycleCount = !fixCycleCount;
|
||||||
|
WritePrivateProfileInt("Timings", "LagReduction", (int)fixCycleCount, IniName);
|
||||||
|
return 0;
|
||||||
|
|
||||||
case IDC_SAVETYPE1: backup_setManualBackupType(0); return 0;
|
case IDC_SAVETYPE1: backup_setManualBackupType(0); return 0;
|
||||||
case IDC_SAVETYPE2: backup_setManualBackupType(1); return 0;
|
case IDC_SAVETYPE2: backup_setManualBackupType(1); return 0;
|
||||||
case IDC_SAVETYPE3: backup_setManualBackupType(2); return 0;
|
case IDC_SAVETYPE3: backup_setManualBackupType(2); return 0;
|
||||||
|
|
|
@ -794,6 +794,7 @@
|
||||||
#define IDC_HKCOMBO 60077
|
#define IDC_HKCOMBO 60077
|
||||||
#define IDD_KEYCUSTOM 60078
|
#define IDD_KEYCUSTOM 60078
|
||||||
#define IDM_HOTKEY_CONFIG 60079
|
#define IDM_HOTKEY_CONFIG 60079
|
||||||
|
#define IDC_LAGREDUCTION 65432
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue