added toggle to bind savestates to movie for SDL

This commit is contained in:
shinydoofy 2008-10-19 16:01:55 +00:00
parent ed0a6e5753
commit cb68bc0631
3 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
---version 2.0.3 yet to be released---
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
08-oct-2008 - zeromus - SF [ 2073105 ] Laptop Volume Control keys make FCEUX go crazy and crash

View File

@ -280,6 +280,7 @@ InitConfig()
config->addOption(prefix + "IncreaseSpeed", SDLK_EQUALS);
config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH);
config->addOption(prefix + "Power", 0);
config->addOption(prefix + "BindState", SDLK_F2);

View File

@ -35,6 +35,7 @@
#ifdef _S9XLUA_H
#include "../../fceulua.h"
#endif
#include "../../file.h"
/** GLOBALS **/
@ -375,6 +376,13 @@ KeyboardCommands()
FCEU_LoadLuaCode(fname.c_str());
}
#endif
g_config->getOption("SDL.Hotkeys.BindState", &key);
if(_keyonly(key)) {
bindSavestate = !bindSavestate;
FCEUI_DispMessage("Savestate binding to movie %sabled.",
bindSavestate ? "en" : "dis");
}
// VS Unisystem games
if(gametype == GIT_VSUNI) {