this might fix ESC-key hack for vista users.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@112 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
cottonvibes 2008-09-10 00:33:12 +00:00 committed by Gregory Hainaut
parent 3284a591a2
commit a59cb8ed50
1 changed files with 14 additions and 12 deletions

View File

@ -622,24 +622,26 @@ void CALLBACK KeyEvent(keyEvent* ev)
#endif
if (CHECK_ESCAPE_HACK) {
ClosePlugins();
SysClose();
//ClosePlugins();
//SysClose();
PostMessage(GetForegroundWindow(), WM_CLOSE, 0, 0);
//ReleasePlugins();
//needReset = 1;
//efile = 0;
exit(0);
//exit(0);
}
else {
ClosePlugins();
ClosePlugins();
if( !UseGui ) {
// not using GUI and user just quit, so exit
exit(0);
}
if( !UseGui ) {
// not using GUI and user just quit, so exit
exit(0);
}
CreateMainWindow(SW_SHOWNORMAL);
RunGui();
nDisableSC = 0;
CreateMainWindow(SW_SHOWNORMAL);
RunGui();
nDisableSC = 0;
}
break;
default: