PAD: implement lifecycle callbacks

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2020-12-11 04:08:41 +01:00 committed by lightningterror
parent 84f838aab0
commit 6df4fea079
2 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,7 @@ void SysCoreThread::Start()
return;
GetCorePlugins().Init();
SPU2init();
PADinit();
DEV9init();
USBinit();
_parent::Start();
@ -311,6 +312,7 @@ void SysCoreThread::OnSuspendInThread()
USBclose();
DoCDVDclose();
FWclose();
PADclose();
SPU2close();
}
@ -325,6 +327,7 @@ void SysCoreThread::OnResumeInThread(bool isSuspended)
}
FWopen();
SPU2open((void*)pDsp);
PADopen();
}
@ -341,6 +344,7 @@ void SysCoreThread::OnCleanupInThread()
vu1Thread.WaitVU();
USBclose();
SPU2close();
PADclose();
DEV9close();
DoCDVDclose();
FWclose();
@ -348,6 +352,7 @@ void SysCoreThread::OnCleanupInThread()
GetCorePlugins().Shutdown();
USBshutdown();
SPU2shutdown();
PADshutdown();
DEV9shutdown();
_mm_setcsr(m_mxcsr_saved.bitmask);

View File

@ -173,6 +173,7 @@ void AppCoreThread::Resume()
GetCorePlugins().Init();
SPU2init();
PADinit();
_parent::Resume();
}