added toggle for movie auot-backup for SDL
This commit is contained in:
parent
d8d239e35d
commit
3ee98c538f
|
@ -1,4 +1,5 @@
|
||||||
---version 2.0.4 yet to be released---
|
---version 2.0.4 yet to be released---
|
||||||
|
22-dec-2008 - shinydoofy - sdl - added Shift+M for toggling automatic movie backups for SDL
|
||||||
22-dec-2008 - adelikat - Movie auto-backup feature implemented
|
22-dec-2008 - adelikat - Movie auto-backup feature implemented
|
||||||
22-dec-2008 - adelikat - win32 - moved movie related menu items to a movie options dialog box
|
22-dec-2008 - adelikat - win32 - moved movie related menu items to a movie options dialog box
|
||||||
22-dec-2008 - adelikat - Win32 - context menu item "create backup" for backing up movie files
|
22-dec-2008 - adelikat - Win32 - context menu item "create backup" for backing up movie files
|
||||||
|
|
|
@ -279,12 +279,12 @@ InitConfig()
|
||||||
#endif
|
#endif
|
||||||
config->addOption(prefix + "RenderBG", SDLK_F4);
|
config->addOption(prefix + "RenderBG", SDLK_F4);
|
||||||
config->addOption(prefix + "SaveState", SDLK_F5);
|
config->addOption(prefix + "SaveState", SDLK_F5);
|
||||||
config->addOption(prefix + "FrameAdvanceLagSkip", SDLK_F6);
|
config->addOption(prefix + "FrameAdvanceLagSkip", SDLK_F6);
|
||||||
config->addOption(prefix + "LoadState", SDLK_F7);
|
config->addOption(prefix + "LoadState", SDLK_F7);
|
||||||
config->addOption(prefix + "LagCounterDisplay", SDLK_F8);
|
config->addOption(prefix + "LagCounterDisplay", SDLK_F8);
|
||||||
config->addOption(prefix + "MovieToggleFrameDisplay", SDLK_F9);
|
config->addOption(prefix + "MovieToggleFrameDisplay", SDLK_F9);
|
||||||
config->addOption(prefix + "SubtitleDisplay", SDLK_F10);
|
config->addOption(prefix + "SubtitleDisplay", SDLK_F10);
|
||||||
config->addOption(prefix + "Reset", SDLK_F11);
|
config->addOption(prefix + "Reset", SDLK_F11);
|
||||||
config->addOption(prefix + "Screenshot", SDLK_F12);
|
config->addOption(prefix + "Screenshot", SDLK_F12);
|
||||||
config->addOption(prefix + "Pause", SDLK_PAUSE);
|
config->addOption(prefix + "Pause", SDLK_PAUSE);
|
||||||
config->addOption(prefix + "DecreaseSpeed", SDLK_MINUS);
|
config->addOption(prefix + "DecreaseSpeed", SDLK_MINUS);
|
||||||
|
|
|
@ -331,6 +331,14 @@ KeyboardCommands()
|
||||||
if(KEY(TAB)) {
|
if(KEY(TAB)) {
|
||||||
NoWaiting |= 1;
|
NoWaiting |= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle Movie auto-backup
|
||||||
|
if(keyonly(M) && is_shift) {
|
||||||
|
autoMovieBackup ^= 1;
|
||||||
|
FCEUI_DispMessage("Automatic movie backup %sabled.",
|
||||||
|
autoMovieBackup ? "en" : "dis");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Famicom disk-system games
|
// Famicom disk-system games
|
||||||
if(gametype==GIT_FDS)
|
if(gametype==GIT_FDS)
|
||||||
|
|
|
@ -573,8 +573,7 @@ SDL_GL_LoadLibrary(0);
|
||||||
// movie playback
|
// movie playback
|
||||||
std::string fname;
|
std::string fname;
|
||||||
g_config->getOption("SDL.Movie", &fname);
|
g_config->getOption("SDL.Movie", &fname);
|
||||||
|
g_config->setOption("SDL.Movie", "");
|
||||||
g_config->setOption("SDL.Movie", "");
|
|
||||||
if (fname != "")
|
if (fname != "")
|
||||||
{
|
{
|
||||||
if(fname.find(".fm2") != std::string::npos)
|
if(fname.find(".fm2") != std::string::npos)
|
||||||
|
|
Loading…
Reference in New Issue