Merge pull request #3255 from mickdermack/pr-hidrace

Fix a race condition on shutdown between Memory and CWII_IPC_HLE_Device_hid
This commit is contained in:
Scott Mansell 2015-11-13 23:54:33 +13:00
commit 19e3fba59f
1 changed files with 9 additions and 9 deletions

View File

@ -56,28 +56,28 @@ namespace HW
DiscIO::cUIDsys::AccessInstance().UpdateLocation();
DiscIO::CSharedContent::AccessInstance().UpdateLocation();
WII_IPCInterface::Init();
WII_IPC_HLE_Interface::Init();
WII_IPC_HLE_Interface::Init(); // Depends on Memory
}
}
void Shutdown()
{
if (SConfig::GetInstance().bWii)
{
WII_IPC_HLE_Interface::Shutdown(); // Depends on Memory
WII_IPCInterface::Shutdown();
Common::ShutdownWiiRoot();
}
SystemTimers::Shutdown();
CPU::Shutdown();
ExpansionInterface::Shutdown();
DVDInterface::Shutdown();
DSP::Shutdown();
Memory::Shutdown();
ExpansionInterface::Shutdown();
SerialInterface::Shutdown();
AudioInterface::Shutdown();
if (SConfig::GetInstance().bWii)
{
WII_IPCInterface::Shutdown();
WII_IPC_HLE_Interface::Shutdown();
Common::ShutdownWiiRoot();
}
State::Shutdown();
CoreTiming::Shutdown();
}