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
This commit is contained in:
LPFaint99 2010-09-05 07:38:26 +00:00
parent 9e3dd4d2d4
commit 197202798d
1 changed files with 1 additions and 13 deletions

View File

@ -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
@ -731,18 +731,6 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
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);