Merge pull request #5710 from leoetlino/more-wiiroot-fixes
Remove unnecessary WiiRoot inits/shutdowns
This commit is contained in:
commit
0ea17dafd9
|
@ -180,6 +180,7 @@ Kernel::Kernel()
|
||||||
// using more than one IOS instance at a time is not supported.
|
// using more than one IOS instance at a time is not supported.
|
||||||
_assert_(GetIOS() == nullptr);
|
_assert_(GetIOS() == nullptr);
|
||||||
Core::InitializeWiiRoot(false);
|
Core::InitializeWiiRoot(false);
|
||||||
|
m_is_responsible_for_nand_root = true;
|
||||||
AddCoreDevices();
|
AddCoreDevices();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,7 +199,8 @@ Kernel::~Kernel()
|
||||||
m_device_map.clear();
|
m_device_map.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::ShutdownWiiRoot();
|
if (m_is_responsible_for_nand_root)
|
||||||
|
Core::ShutdownWiiRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
Kernel::Kernel(u64 title_id) : m_title_id(title_id)
|
Kernel::Kernel(u64 title_id) : m_title_id(title_id)
|
||||||
|
|
|
@ -133,6 +133,7 @@ protected:
|
||||||
s32 GetFreeDeviceID();
|
s32 GetFreeDeviceID();
|
||||||
s32 OpenDevice(OpenRequest& request);
|
s32 OpenDevice(OpenRequest& request);
|
||||||
|
|
||||||
|
bool m_is_responsible_for_nand_root = false;
|
||||||
u64 m_title_id = 0;
|
u64 m_title_id = 0;
|
||||||
static constexpr u8 IPC_MAX_FDS = 0x18;
|
static constexpr u8 IPC_MAX_FDS = 0x18;
|
||||||
std::map<std::string, std::shared_ptr<Device::Device>> m_device_map;
|
std::map<std::string, std::shared_ptr<Device::Device>> m_device_map;
|
||||||
|
|
|
@ -625,7 +625,8 @@ bool BeginRecordingInput(int controllers)
|
||||||
|
|
||||||
s_currentByte = s_totalBytes = 0;
|
s_currentByte = s_totalBytes = 0;
|
||||||
|
|
||||||
Core::UpdateWantDeterminism();
|
if (Core::IsRunning())
|
||||||
|
Core::UpdateWantDeterminism();
|
||||||
|
|
||||||
Core::PauseAndLock(false, was_unpaused);
|
Core::PauseAndLock(false, was_unpaused);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue