From 197202798dfcb2cfe30e916a932d993b8c39a467 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Sun, 5 Sep 2010 07:38:26 +0000 Subject: [PATCH] oops, left in some code and typo with the attempted ios reload fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6176 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp index de524d0907..d1c41b83c0 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp @@ -720,7 +720,7 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress) // The following is obviously a hack // Lie to mem about loading a different ios // someone with an affected game should test - IOSv = TitleID && 0xffff; + IOSv = TitleID & 0xffff; } // Pass the "#002 check" // Apploader should write the IOS version and revision to 0x3140, and compare it @@ -730,18 +730,6 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress) Memory::Write_U16(IOSv, 0x00003140); Memory::Write_U16(0xFFFF, 0x00003142); Memory::Write_U32(Memory::Read_U32(0x00003140), 0x00003188); - - /* - u8* lSys = new u8[0xe0]; - memset(lSys, 0, 0x100); - *(u64*)lSys = Common::swap64(TitleID); - Memory::ReadBigEData(lSys + sizeof(u64), view, 0xD8); - char lSysPath[1024]; - sprintf(lSysPath, "%ssys/launch.sys", File::GetUserPath(D_WIIUSER_IDX)); - FILE* launchSys = fopen(lSysPath, "wb"); - fwrite(lSys, 0xe0, 1, launchSys); - fclose(launchSys); - */ //TODO: provide correct return code when bSuccess= false Memory::Write_U32(0, _CommandAddress + 0x4);