gtk2 bugfix: no longer crashes when escape hotkey is used

note to SDL: use CloseGame in the SDL code, not FCEUI_CloseGame.
This commit is contained in:
punkrockguy318 2009-12-21 11:41:58 +00:00
parent 72432cf114
commit b62bdede3b
1 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#include "sdl-video.h" #include "sdl-video.h"
#include "sdl.h"
#include "../common/cheat.h" #include "../common/cheat.h"
#include "../../movie.h" #include "../../movie.h"
@ -562,7 +563,7 @@ KeyboardCommands()
} }
if(_keyonly(quitKey)) { if(_keyonly(quitKey)) {
FCEUI_CloseGame(); CloseGame();
} }
#ifdef _S9XLUA_H #ifdef _S9XLUA_H
if(_keyonly(loadLuaKey)) { if(_keyonly(loadLuaKey)) {
@ -720,7 +721,7 @@ UpdatePhysicalInput()
while(SDL_PollEvent(&event)) { while(SDL_PollEvent(&event)) {
switch(event.type) { switch(event.type) {
case SDL_QUIT: case SDL_QUIT:
FCEUI_CloseGame(); CloseGame();
puts("Quit"); puts("Quit");
break; break;
default: default: