Fixed New 3DS CPU patch overriding the CPU mode of N3DS exclusives/enhanced titles

This commit is contained in:
Aurora
2016-11-08 17:39:54 +01:00
parent 40c6cc11a5
commit 429488a4ba
2 changed files with 6 additions and 3 deletions

View File

@@ -459,8 +459,10 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size)
else
{
//Patch N3DS CPU Clock and L2 cache setting
*(off - 4) = 0xE1A00000;
*(off + 3) = 0xE3A00000 | cpuSetting;
*(off - 4) = *(off - 3);
*(off - 3) = *(off - 1);
memcpy(off - 1, off, 16);
*(off + 3) = 0xE3800000 | cpuSetting;
}
}
}