Shut down HW in reverse initialization order
Fixes a race condition between Memory and CWII_IPC_HLE_Device_hid
This commit is contained in:
parent
8924980b49
commit
3cbed527c2
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue