Misc: Purge unused code and report startup error to host

This commit is contained in:
Stenzek committed 2024-05-05 22:29:26 +10:00
1 parent ca3cfbaa99
commit fa104acdd1
17 files changed
+146 -179

No files matched your search

+7 -3
View File
@@ -1639,10 +1639,14 @@ void EmuThread::run()
m_started_semaphore.release();
// input source setup must happen on emu thread
if (!System::Internal::CPUThreadInitialize())
{
moveToThread(m_ui_thread);
return;
Error startup_error;
if (!System::Internal::CPUThreadInitialize(&startup_error))
{
Host::ReportFatalError("Fatal Startup Error", startup_error.GetDescription());
moveToThread(m_ui_thread);
return;
}
}
// bind buttons/axises