mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
3284a591a2
commit
a59cb8ed50
|
@ -622,24 +622,26 @@ void CALLBACK KeyEvent(keyEvent* ev)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (CHECK_ESCAPE_HACK) {
|
if (CHECK_ESCAPE_HACK) {
|
||||||
ClosePlugins();
|
//ClosePlugins();
|
||||||
SysClose();
|
//SysClose();
|
||||||
|
PostMessage(GetForegroundWindow(), WM_CLOSE, 0, 0);
|
||||||
//ReleasePlugins();
|
//ReleasePlugins();
|
||||||
//needReset = 1;
|
//needReset = 1;
|
||||||
//efile = 0;
|
//efile = 0;
|
||||||
exit(0);
|
//exit(0);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
ClosePlugins();
|
||||||
|
|
||||||
ClosePlugins();
|
if( !UseGui ) {
|
||||||
|
// not using GUI and user just quit, so exit
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
if( !UseGui ) {
|
CreateMainWindow(SW_SHOWNORMAL);
|
||||||
// not using GUI and user just quit, so exit
|
RunGui();
|
||||||
exit(0);
|
nDisableSC = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateMainWindow(SW_SHOWNORMAL);
|
|
||||||
RunGui();
|
|
||||||
nDisableSC = 0;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue