Merge branch 'master' of https://github.com/AuroraWright/Luma3DS
This commit is contained in:
commit
7e46046e3b
@ -364,15 +364,12 @@ void patchCode(u64 progId, u8 *code, u32 size)
|
|||||||
0xE0, 0x1E, 0xFF, 0x2F, 0xE1, 0x01, 0x01, 0x01
|
0xE0, 0x1E, 0xFF, 0x2F, 0xE1, 0x01, 0x01, 0x01
|
||||||
};
|
};
|
||||||
|
|
||||||
static const u8 fpdVerPatch = 0x06;
|
static const u8 mostRecentFpdVer = 0x06;
|
||||||
|
|
||||||
//Allow online access to work with old friends modules
|
u8 *fpdVer = memsearch(code, fpdVerPattern, size, sizeof(fpdVerPattern));
|
||||||
patchMemory(code, size,
|
|
||||||
fpdVerPattern,
|
//Allow online access to work with old friends modules, without breaking newer firmwares
|
||||||
sizeof(fpdVerPattern), 9,
|
if(fpdVer != NULL && fpdVer[9] < mostRecentFpdVer) fpdVer[9] = mostRecentFpdVer;
|
||||||
&fpdVerPatch,
|
|
||||||
sizeof(fpdVerPatch), 1
|
|
||||||
);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user