mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
Add "Enable Turbo Mode" toggle to the Video Settings menu (#1005)
This commit is contained in:
parent
b643b0d7ac
commit
2e0df05e5d
@ -747,12 +747,15 @@ void ReportButtons ()
|
|||||||
|
|
||||||
UpdatePads();
|
UpdatePads();
|
||||||
|
|
||||||
Settings.TurboMode = (
|
if (GCSettings.TurboModeEnabled == 1)
|
||||||
userInput[0].pad.substickX > 70 ||
|
{
|
||||||
userInput[0].WPAD_StickX(1) > 70 ||
|
Settings.TurboMode = (
|
||||||
userInput[0].wiidrcdata.substickX > 45
|
userInput[0].pad.substickX > 70 ||
|
||||||
); // RIGHT on c-stick and on classic controller right joystick
|
userInput[0].WPAD_StickX(1) > 70 ||
|
||||||
|
userInput[0].wiidrcdata.substickX > 45
|
||||||
|
); // RIGHT on c-stick and on classic controller right joystick
|
||||||
|
}
|
||||||
|
|
||||||
if(Settings.TurboMode) {
|
if(Settings.TurboMode) {
|
||||||
Settings.SoundSync = false;
|
Settings.SoundSync = false;
|
||||||
}
|
}
|
||||||
|
@ -3389,6 +3389,7 @@ static int MenuSettingsVideo()
|
|||||||
sprintf(options.name[i++], "Show Framerate");
|
sprintf(options.name[i++], "Show Framerate");
|
||||||
sprintf(options.name[i++], "Show Local Time");
|
sprintf(options.name[i++], "Show Local Time");
|
||||||
sprintf(options.name[i++], "SuperFX Overclock");
|
sprintf(options.name[i++], "SuperFX Overclock");
|
||||||
|
sprintf(options.name[i++], "Enable Turbo Mode");
|
||||||
options.length = i;
|
options.length = i;
|
||||||
|
|
||||||
#ifdef HW_DOL
|
#ifdef HW_DOL
|
||||||
@ -3497,6 +3498,11 @@ static int MenuSettingsVideo()
|
|||||||
S9xResetSuperFX();
|
S9xResetSuperFX();
|
||||||
S9xReset();
|
S9xReset();
|
||||||
break;
|
break;
|
||||||
|
case 10:
|
||||||
|
GCSettings.TurboModeEnabled++;
|
||||||
|
if (GCSettings.TurboModeEnabled > 1)
|
||||||
|
GCSettings.TurboModeEnabled = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ret >= 0 || firstRun)
|
if(ret >= 0 || firstRun)
|
||||||
@ -3551,6 +3557,7 @@ static int MenuSettingsVideo()
|
|||||||
case 3:
|
case 3:
|
||||||
sprintf (options.value[9], "60 MHz"); break;
|
sprintf (options.value[9], "60 MHz"); break;
|
||||||
}
|
}
|
||||||
|
sprintf (options.value[10], "%s", GCSettings.TurboModeEnabled == 1 ? "On" : "Off");
|
||||||
optionBrowser.TriggerUpdate();
|
optionBrowser.TriggerUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@ preparePrefsData ()
|
|||||||
createXMLSetting("yshift", "Vertical Video Shift", toStr(GCSettings.yshift));
|
createXMLSetting("yshift", "Vertical Video Shift", toStr(GCSettings.yshift));
|
||||||
createXMLSetting("sfxOverclock", "SuperFX Overclock", toStr(GCSettings.sfxOverclock));
|
createXMLSetting("sfxOverclock", "SuperFX Overclock", toStr(GCSettings.sfxOverclock));
|
||||||
createXMLSetting("Interpolation", "Interpolation", toStr(GCSettings.Interpolation));
|
createXMLSetting("Interpolation", "Interpolation", toStr(GCSettings.Interpolation));
|
||||||
|
createXMLSetting("TurboModeEnabled", "Turbo Mode Enabled", toStr(GCSettings.TurboModeEnabled));
|
||||||
|
|
||||||
createXMLSection("Menu", "Menu Settings");
|
createXMLSection("Menu", "Menu Settings");
|
||||||
|
|
||||||
@ -337,6 +338,7 @@ decodePrefsData ()
|
|||||||
loadXMLSetting(&GCSettings.FilterMethod, "FilterMethod");
|
loadXMLSetting(&GCSettings.FilterMethod, "FilterMethod");
|
||||||
loadXMLSetting(&GCSettings.xshift, "xshift");
|
loadXMLSetting(&GCSettings.xshift, "xshift");
|
||||||
loadXMLSetting(&GCSettings.yshift, "yshift");
|
loadXMLSetting(&GCSettings.yshift, "yshift");
|
||||||
|
loadXMLSetting(&GCSettings.TurboModeEnabled, "TurboModeEnabled");
|
||||||
|
|
||||||
// Audio Settings
|
// Audio Settings
|
||||||
|
|
||||||
@ -529,6 +531,8 @@ DefaultSettings ()
|
|||||||
Settings.OneClockCycle = 6;
|
Settings.OneClockCycle = 6;
|
||||||
Settings.OneSlowClockCycle = 8;
|
Settings.OneSlowClockCycle = 8;
|
||||||
Settings.TwoClockCycles = 12;
|
Settings.TwoClockCycles = 12;
|
||||||
|
|
||||||
|
GCSettings.TurboModeEnabled = 1; // Enabled by default
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -122,6 +122,8 @@ struct SGCSettings{
|
|||||||
int sfxOverclock;
|
int sfxOverclock;
|
||||||
|
|
||||||
int Interpolation;
|
int Interpolation;
|
||||||
|
|
||||||
|
int TurboModeEnabled; // 0 - disabled, 1 - enabled
|
||||||
};
|
};
|
||||||
|
|
||||||
void ExitApp();
|
void ExitApp();
|
||||||
|
Loading…
Reference in New Issue
Block a user