Fixed New 3DS CPU patch overriding the CPU mode of N3DS exclusives/enhanced titles
This commit is contained in:
parent
40c6cc11a5
commit
429488a4ba
@ -459,8 +459,10 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Patch N3DS CPU Clock and L2 cache setting
|
//Patch N3DS CPU Clock and L2 cache setting
|
||||||
*(off - 4) = 0xE1A00000;
|
*(off - 4) = *(off - 3);
|
||||||
*(off + 3) = 0xE3A00000 | cpuSetting;
|
*(off - 3) = *(off - 1);
|
||||||
|
memcpy(off - 1, off, 16);
|
||||||
|
*(off + 3) = 0xE3800000 | cpuSetting;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,8 @@ void configMenu(bool isSdMode, bool oldPinStatus, u32 oldPinMode)
|
|||||||
"(refer to the wiki for instructions).",
|
"(refer to the wiki for instructions).",
|
||||||
|
|
||||||
"Select the New 3DS CPU mode.\n\n"
|
"Select the New 3DS CPU mode.\n\n"
|
||||||
"It will be always enabled.\n\n"
|
"This won't apply to\n"
|
||||||
|
"New 3DS exclusive/enhanced games.\n\n"
|
||||||
"'Clock+L2' can cause issues with some\n"
|
"'Clock+L2' can cause issues with some\n"
|
||||||
"games.",
|
"games.",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user