Misc: Purge unused code and report startup error to host

This commit is contained in:
Stenzek
2024-05-05 21:32:04 +10:00
parent ca3cfbaa99
commit fa104acdd1
17 changed files with 146 additions and 179 deletions

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