Let's actually call Init/Shutdown in CoreTiming.

This commit is contained in:
Unknown W. Brackets 2013-01-17 01:12:40 -08:00
parent e635be5797
commit 65568b54b6

View File

@ -65,6 +65,8 @@ bool PSP_Init(const CoreParameter &coreParam, std::string *error_string)
LogManager::GetInstance()->SetEnable(LogTypes::G3D, false);
}
CoreTiming::Init();
// Init all the HLE modules
HLEInit();
@ -73,8 +75,7 @@ bool PSP_Init(const CoreParameter &coreParam, std::string *error_string)
if (!LoadFile(coreParameter.fileToStart.c_str(), error_string))
{
pspFileSystem.Shutdown();
CoreTiming::ClearPendingEvents();
CoreTiming::UnregisterAllEvents();
CoreTiming::Shutdown();
__KernelShutdown();
HLEShutdown();
host->ShutdownSound();
@ -102,8 +103,7 @@ void PSP_Shutdown()
TextureCache_Clear(true);
CoreTiming::ClearPendingEvents();
CoreTiming::UnregisterAllEvents();
CoreTiming::Shutdown();
if (coreParameter.enableSound)
{