Minor stuff

This commit is contained in:
Aurora 2016-11-06 14:52:10 +01:00
parent 594881c6ce
commit 40c6cc11a5

View File

@ -449,11 +449,11 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size)
if(cpuSetting != 0) if(cpuSetting != 0)
{ {
static const u8 cfgN3dsCpuPattern[] = { static const u8 pattern[] = {
0x0C, 0x00, 0x94, 0x15 0x0C, 0x00, 0x94, 0x15
}; };
u32 *off = (u32 *)memsearch(code, cfgN3dsCpuPattern, size, sizeof(cfgN3dsCpuPattern)); u32 *off = (u32 *)memsearch(code, pattern, size, sizeof(pattern));
if(off == NULL) res++; if(off == NULL) res++;
else else