System: Move COM init to common code

This commit is contained in:
Stenzek
2024-04-25 12:56:02 +10:00
parent 425235fd31
commit 7548113afd
5 changed files with 25 additions and 18 deletions

View File

@ -1603,7 +1603,7 @@ void EmuThread::run()
m_started_semaphore.release();
// input source setup must happen on emu thread
if (!System::Internal::ProcessStartup())
if (!System::Internal::CPUThreadInitialize())
{
moveToThread(m_ui_thread);
return;
@ -1645,7 +1645,7 @@ void EmuThread::run()
System::ShutdownSystem(false);
destroyBackgroundControllerPollTimer();
System::Internal::ProcessShutdown();
System::Internal::CPUThreadShutdown();
// move back to UI thread
moveToThread(m_ui_thread);