From ae53895a13f9d11d86c0d67c252d696ab5d89212 Mon Sep 17 00:00:00 2001 From: shinydoofy Date: Sun, 29 Mar 2009 13:20:10 +0000 Subject: [PATCH] SDL: fixed compilation error without -DCREATE_AVI introduced in r1239 --- src/drivers/sdl/config.cpp | 2 ++ src/drivers/sdl/input.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/drivers/sdl/config.cpp b/src/drivers/sdl/config.cpp index 5e7b5420..88a4578b 100644 --- a/src/drivers/sdl/config.cpp +++ b/src/drivers/sdl/config.cpp @@ -303,7 +303,9 @@ InitConfig() config->addOption(prefix + "IncreaseSpeed", SDLK_EQUALS); config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH); config->addOption(prefix + "InputDisplay", SDLK_i); + #ifdef CREATE_AVI config->addOption(prefix + "MuteCapture", SDLK_DELETE); + #endif config->addOption(prefix + "Quit", SDLK_ESCAPE); //config->addOption(prefix + "Power", 0); diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index 04a81dea..df27eea8 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -168,7 +168,9 @@ int movieToggleFrameDisplayKey; int lagCounterDisplayKey; int SubtitleDisplayKey; int InputDisplayKey; +#ifdef CREATE_AVI int MuteCaptureKey; +#endif // this function loads the sdl hotkeys from the config file into the // global scope. this elimates the need for accessing the config file @@ -206,7 +208,9 @@ void setHotKeys() g_config->getOption("SDL.Hotkeys.MovieToggleFrameDisplay", &movieToggleFrameDisplayKey); g_config->getOption("SDL.Hotkeys.SubtitleDisplay", &SubtitleDisplayKey); g_config->getOption("SDL.Hotkeys.InputDisplay", &InputDisplayKey); + #ifdef CREATE_AVI g_config->getOption("SDL.Hotkeys.MuteCapture", &MuteCaptureKey); + #endif /* config->addOption(prefix + "FrameAdvance", SDLK_BACKSLASH); config->addOption(prefix + "Power", 0); @@ -419,10 +423,12 @@ KeyboardCommands() g_config->setOption("SDL.InputDisplay", input_display); } + #ifdef CREATE_AVI if(_keyonly(MuteCaptureKey)) { extern int mutecapture; mutecapture ^= 1; } + #endif if(_keyonly(pauseKey)) { FCEUI_ToggleEmulationPause();