mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 02:00:15 +01:00
MTGS: Prevent the emulator from crashing if GS fails to init
This commit is contained in:
1 parent
1ad6532f1a
commit
cc5142000b
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user