gtk: fix "quit" hotkey when --nogui is disabled
This commit is contained in:
parent
dd7a1bc081
commit
0c69e0fbfb
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue