Remove unnecessary WiiRoot inits/shutdowns
* IOS: WiiRoot shutdown was moved to HW. * Movie: Don't call UpdateWantDeterminism() if we're not running yet, because this will automatically be done during the boot process. Not doing this will result in two NANDs being created.
This commit is contained in:
parent
ffe4135d77
commit
ff83b93949
|
@ -180,6 +180,7 @@ Kernel::Kernel()
|
|||
// using more than one IOS instance at a time is not supported.
|
||||
_assert_(GetIOS() == nullptr);
|
||||
Core::InitializeWiiRoot(false);
|
||||
m_is_responsible_for_nand_root = true;
|
||||
AddCoreDevices();
|
||||
}
|
||||
|
||||
|
@ -198,6 +199,7 @@ Kernel::~Kernel()
|
|||
m_device_map.clear();
|
||||
}
|
||||
|
||||
if (m_is_responsible_for_nand_root)
|
||||
Core::ShutdownWiiRoot();
|
||||
}
|
||||
|
||||
|
|
|
@ -133,6 +133,7 @@ protected:
|
|||
s32 GetFreeDeviceID();
|
||||
s32 OpenDevice(OpenRequest& request);
|
||||
|
||||
bool m_is_responsible_for_nand_root = false;
|
||||
u64 m_title_id = 0;
|
||||
static constexpr u8 IPC_MAX_FDS = 0x18;
|
||||
std::map<std::string, std::shared_ptr<Device::Device>> m_device_map;
|
||||
|
|
|
@ -625,6 +625,7 @@ bool BeginRecordingInput(int controllers)
|
|||
|
||||
s_currentByte = s_totalBytes = 0;
|
||||
|
||||
if (Core::IsRunning())
|
||||
Core::UpdateWantDeterminism();
|
||||
|
||||
Core::PauseAndLock(false, was_unpaused);
|
||||
|
|
Loading…
Reference in New Issue