From 36c1da1d61c5a8ebb7f087b78e5fc0d8b50dac4e Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Mon, 7 Aug 2017 21:20:08 +0200 Subject: [PATCH] Add mention of exheaders in the Enable game patching description --- source/config.c | 2 +- sysmodules/loader/source/loader.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/config.c b/source/config.c index 19b8592..25c395c 100644 --- a/source/config.c +++ b/source/config.c @@ -152,7 +152,7 @@ void configMenu(bool oldPinStatus, u32 oldPinMode) "Enable overriding the region and\n" "language configuration and the usage\n" - "of patched code binaries,\n" + "of patched code binaries, exHeaders,\n" "IPS code patches and LayeredFS\n" "for specific games.\n\n" "Also makes certain DLCs\n" diff --git a/sysmodules/loader/source/loader.c b/sysmodules/loader/source/loader.c index 8768130..ec0f0c2 100644 --- a/sysmodules/loader/source/loader.c +++ b/sysmodules/loader/source/loader.c @@ -263,8 +263,8 @@ static Result loader_GetProgramInfo(exheader_header *exheader, u64 prog_handle) u64 originalProgId = exheader->arm11systemlocalcaps.programid; if(CONFIG(PATCHGAMES) && loadTitleExheader(exheader->arm11systemlocalcaps.programid, exheader)) { - exheader->arm11systemlocalcaps.programid = originalProgId; - exheader->accessdesc.arm11systemlocalcaps.programid = originalProgId; + exheader->arm11systemlocalcaps.programid = originalProgId; + exheader->accessdesc.arm11systemlocalcaps.programid = originalProgId; } } }