Shut down HW in reverse initialization order

Fixes a race condition between Memory and CWII_IPC_HLE_Device_hid
This commit is contained in:
Michael Ehrenreich 2015-11-12 22:11:59 +01:00
parent 8924980b49
commit 3cbed527c2
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();
}