MTGS: Prevent the emulator from crashing if GS fails to init

This commit is contained in:
TellowKrinkle authored and tellowkrinkle committed 2022-04-27 01:49:59 -05:00
1 parent 1ad6532f1a
commit cc5142000b
1 file changed
+2
+2
View File
@@ -859,6 +859,8 @@ bool SysMtgsThread::WaitForOpen()
}
RethrowException();
if (!m_Opened) // EE thread will continue running and explode everything if we don't throw an exception
throw Exception::RuntimeError(std::runtime_error("GS failed to open."));
return m_Opened;
#else
if (!m_sem_OpenDone.Wait(wxTimeSpan(0, 0, 12, 0)) || !m_Opened)