mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
Patch lgy k11 for agb_firm, too
This commit is contained in:
parent
1c7a2b6135
commit
52a1f4ae60
@ -645,6 +645,11 @@ u32 patchAgbFirm(bool loadFromStorage, bool doUnitinfoPatch)
|
||||
{
|
||||
u8 *arm9Section = (u8 *)firm + firm->section[3].offset;
|
||||
|
||||
u8 *section1 = (u8 *)firm + firm->section[1].offset;
|
||||
u32 section1Size = firm->section[1].size;
|
||||
u8 *section2 = (u8 *)firm + firm->section[2].offset;
|
||||
u32 section2Size = firm->section[2].size;
|
||||
|
||||
//On N3DS, decrypt Arm9Bin and patch Arm9 entrypoint to skip kernel9loader
|
||||
if(ISN3DS)
|
||||
{
|
||||
@ -662,6 +667,7 @@ u32 patchAgbFirm(bool loadFromStorage, bool doUnitinfoPatch)
|
||||
|
||||
ret += patchLgySignatureChecks(process9Offset, process9Size);
|
||||
if(CONFIG(SHOWGBABOOT)) ret += patchAgbBootSplash(process9Offset, process9Size);
|
||||
ret += patchLgyK11(section1, section1Size, section2, section2Size);
|
||||
|
||||
//Apply UNITINFO patch
|
||||
if(doUnitinfoPatch) ret += patchUnitInfoValueSet(arm9Section, kernel9Size);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user