gtk: fix "quit" hotkey when --nogui is disabled

This commit is contained in:
punkrockguy318 2012-12-31 13:34:32 +00:00
parent dd7a1bc081
commit 0c69e0fbfb
1 changed files with 12 additions and 7 deletions

View File

@ -693,15 +693,20 @@ static void KeyboardCommands ()
//if(_keyonly(Hotkeys[HK_POWER])) {
// FCEUI_PowerNES();
//}
// TODO add comment i'm on the phone
if (noGui == 1)
{
if (_keyonly (Hotkeys[HK_QUIT]))
{
if (noGui == 1)
{
CloseGame ();
}
else
{
FCEUI_Kill();
SDL_Quit();
exit(0);
}
}
else
#ifdef _S9XLUA_H
if (_keyonly (Hotkeys[HK_LOAD_LUA]))