summaryrefslogtreecommitdiff
path: root/macosx/EmuThread.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/EmuThread.m')
-rw-r--r--macosx/EmuThread.m12
1 files changed, 4 insertions, 8 deletions
diff --git a/macosx/EmuThread.m b/macosx/EmuThread.m
index 07f7d33c..9eba8649 100644
--- a/macosx/EmuThread.m
+++ b/macosx/EmuThread.m
@@ -54,9 +54,9 @@ static pthread_mutex_t eventMutex;
if (OpenPlugins() == -1)
goto done;
- if (setjmp(restartJmp) == 0) {
- psxReset();
- }
+ setjmp(restartJmp);
+
+ psxReset();
int res = CheckCdrom();
if (res == -1) {
@@ -104,9 +104,7 @@ done:
if (OpenPlugins() == -1)
goto done;
- if (setjmp(restartJmp) == 0) {
- psxReset();
- }
+ psxReset();
psxCpu->Execute();
@@ -191,8 +189,6 @@ done:
safeEvent &= ~EMUEVENT_RESET;
pthread_mutex_unlock(&eventMutex);
- psxReset();
-
longjmp(restartJmp, 0);
#endif
}