From eeff32db16123e1de18604102a91729b97612bb0 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Sat, 28 Jan 2012 23:48:34 +0000 Subject: [PATCH] sdl: don't closeGame() on escape key when running in gui mode --- src/drivers/sdl/input.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index 91ed918b..d84166d9 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -627,10 +627,15 @@ KeyboardCommands() //if(_keyonly(Hotkeys[HK_POWER])) { // FCEUI_PowerNES(); //} - - if(_keyonly(Hotkeys[HK_QUIT])) { - CloseGame(); + + // TODO add comment i'm on the phone + if(noGui == 1) + { + if(_keyonly(Hotkeys[HK_QUIT])) { + CloseGame(); + } } + #ifdef _S9XLUA_H if(_keyonly(Hotkeys[HK_LOAD_LUA])) { std::string fname;