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

View File

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