mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Reverted the ES changes from r0fc390b55226. Fixes the crash that occurred when loading a channel from the sysmenu.
This commit is contained in:
parent
e5d527340d
commit
a1b3eaffb7
@ -739,7 +739,6 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
|
|||||||
{
|
{
|
||||||
_dbg_assert_(WII_IPC_ES, Buffer.NumberInBuffer == 2);
|
_dbg_assert_(WII_IPC_ES, Buffer.NumberInBuffer == 2);
|
||||||
bool bSuccess = false;
|
bool bSuccess = false;
|
||||||
bool reloadIOS = false;
|
|
||||||
u16 IOSv = 0xffff;
|
u16 IOSv = 0xffff;
|
||||||
|
|
||||||
u64 TitleID = Memory::Read_U64(Buffer.InBuffer[0].m_Address);
|
u64 TitleID = Memory::Read_U64(Buffer.InBuffer[0].m_Address);
|
||||||
@ -776,14 +775,13 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
|
|||||||
// Lie to mem about loading a different ios
|
// Lie to mem about loading a different ios
|
||||||
// someone with an affected game should test
|
// someone with an affected game should test
|
||||||
IOSv = TitleID & 0xffff;
|
IOSv = TitleID & 0xffff;
|
||||||
reloadIOS = true;
|
|
||||||
}
|
}
|
||||||
if (!bSuccess)
|
if (!bSuccess)
|
||||||
{
|
{
|
||||||
PanicAlertT("IOCTL_ES_LAUNCH: Game tried to reload ios or a title that is not available in your nand dump\n"
|
PanicAlertT("IOCTL_ES_LAUNCH: Game tried to reload ios or a title that is not available in your nand dump\n"
|
||||||
"TitleID %016llx.\n Dolphin will likely hang now", TitleID);
|
"TitleID %016llx.\n Dolphin will likely hang now", TitleID);
|
||||||
}
|
}
|
||||||
else if (reloadIOS)
|
else
|
||||||
{
|
{
|
||||||
std::string tContentFile(m_ContentFile.c_str());
|
std::string tContentFile(m_ContentFile.c_str());
|
||||||
WII_IPC_HLE_Interface::Reset(true);
|
WII_IPC_HLE_Interface::Reset(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user