toggle skipping of lag frames for SDL build

This commit is contained in:
shinydoofy 2008-10-19 17:48:06 +00:00
parent a78317c485
commit d0992f7ff5
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,6 @@
---version 2.0.3 yet to be released---
19-oct-2008 - shinydoofy - toggle skipping of lag frames for SDL build, default hotkey F6
19-oct-2008 - shinydoofy - toggle lag frame counter for SDL, default hotkey F8
19-oct-2008 - shinydoofy - toggle skipping of lag frames for SDL, default hotkey F6
19-oct-2008 - shinydoofy - [ 2179829 ] user ability to toggle "bind savestates to movie" added for SDL, default hotkey F2
19-oct-2008 - adelikat - winew - added a toggle for binding savestates to movies
18-oct-2008 - adelikat - Win32 - added -cfg (config file) command line argument

View File

@ -282,6 +282,7 @@ InitConfig()
config->addOption(prefix + "Power", 0);
config->addOption(prefix + "BindState", SDLK_F2);
config->addOption(prefix + "FrameAdvanceLagSkip", SDLK_F6);
config->addOption(prefix + "LagCounterDisplay", SDLK_F8);

View File

@ -40,7 +40,7 @@
/** GLOBALS **/
int NoWaiting=1;
extern Config *g_config;
extern bool bindSavestate, frameAdvanceLagSkip;
extern bool bindSavestate, frameAdvanceLagSkip, lagCounterDisplay;
/* UsrInputType[] is user-specified. InputType[] is current
@ -390,6 +390,11 @@ KeyboardCommands()
FCEUI_DispMessage("Skipping lag in Frame Advance %sabled.",
frameAdvanceLagSkip ? "en" : "dis");
}
g_config->getOption("SDL.Hotkeys.LagCounterDisplay", &key);
if(_keyonly(key)) {
lagCounterDisplay ^= 1;
}
// VS Unisystem games
if(gametype == GIT_VSUNI) {

View File

@ -65,7 +65,7 @@
int AFon = 1, AFoff = 1, AutoFireOffset = 0; //For keeping track of autofire settings
bool justLagged = false;
bool frameAdvanceLagSkip = false; //If this is true, frame advance will skip over lag frame (i.e. it will emulate 2 frames instead of 1)
//TODO: SDL version - hotkey item only, but no default mapping
FCEUGI::FCEUGI()
: filename(0)
, archiveFilename(0)