added toggle for movie auot-backup for SDL

This commit is contained in:
shinydoofy 2008-12-23 01:25:30 +00:00
parent d8d239e35d
commit 3ee98c538f
4 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,5 @@
---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 - 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

View File

@ -279,12 +279,12 @@ InitConfig()
#endif
config->addOption(prefix + "RenderBG", SDLK_F4);
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 + "LagCounterDisplay", SDLK_F8);
config->addOption(prefix + "LagCounterDisplay", SDLK_F8);
config->addOption(prefix + "MovieToggleFrameDisplay", SDLK_F9);
config->addOption(prefix + "SubtitleDisplay", SDLK_F10);
config->addOption(prefix + "Reset", SDLK_F11);
config->addOption(prefix + "SubtitleDisplay", SDLK_F10);
config->addOption(prefix + "Reset", SDLK_F11);
config->addOption(prefix + "Screenshot", SDLK_F12);
config->addOption(prefix + "Pause", SDLK_PAUSE);
config->addOption(prefix + "DecreaseSpeed", SDLK_MINUS);

View File

@ -331,6 +331,14 @@ KeyboardCommands()
if(KEY(TAB)) {
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
if(gametype==GIT_FDS)

View File

@ -573,8 +573,7 @@ SDL_GL_LoadLibrary(0);
// movie playback
std::string fname;
g_config->getOption("SDL.Movie", &fname);
g_config->setOption("SDL.Movie", "");
g_config->setOption("SDL.Movie", "");
if (fname != "")
{
if(fname.find(".fm2") != std::string::npos)