From b62bdede3bfdeb815028c14728d07742a5986c45 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Mon, 21 Dec 2009 11:41:58 +0000 Subject: [PATCH] gtk2 bugfix: no longer crashes when escape hotkey is used note to SDL: use CloseGame in the SDL code, not FCEUI_CloseGame. --- src/drivers/sdl/input.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/drivers/sdl/input.cpp b/src/drivers/sdl/input.cpp index 46bdebf8..b21e730e 100644 --- a/src/drivers/sdl/input.cpp +++ b/src/drivers/sdl/input.cpp @@ -28,6 +28,7 @@ #include "sdl-video.h" +#include "sdl.h" #include "../common/cheat.h" #include "../../movie.h" @@ -562,7 +563,7 @@ KeyboardCommands() } if(_keyonly(quitKey)) { - FCEUI_CloseGame(); + CloseGame(); } #ifdef _S9XLUA_H if(_keyonly(loadLuaKey)) { @@ -720,7 +721,7 @@ UpdatePhysicalInput() while(SDL_PollEvent(&event)) { switch(event.type) { case SDL_QUIT: - FCEUI_CloseGame(); + CloseGame(); puts("Quit"); break; default: