From 9656fe1b6f897f87ebec70d97c8f44f1748e8168 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Sun, 23 Apr 2017 03:13:38 +0200 Subject: [PATCH] Change variable names for consistency --- injector/source/patcher.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/injector/source/patcher.c b/injector/source/patcher.c index aed594f..3907478 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -516,11 +516,11 @@ static inline bool patchLayeredFs(u64 progId, u8* code, u32 size) char path[] = "/luma/titles/0000000000000000/romfs"; progIdToStr(path + 28, progId); - u32 archive = checkLumaDir(path); + u32 archiveId = checkLumaDir(path); - if(!archive) return true; + if(!archiveId) return true; - const char *mount = archive == ARCHIVE_SDMC ? "sdc:" : "nnd:"; + const char *archiveName = archiveId == ARCHIVE_SDMC ? "sdc:" : "nnd:"; u32 fsMountArchive = 0xFFFFFFFF, fsRegisterArchive = 0xFFFFFFFF, @@ -554,7 +554,7 @@ static inline bool patchLayeredFs(u64 progId, u8* code, u32 size) payload32[i] = MAKE_BRANCH(payloadOffset + i * 4, fsTryOpenFile + 4); break; case 0xdead0004: - memcpy(payload32 + i, mount, 4); + memcpy(payload32 + i, archiveName, 4); memcpy((u8 *)(payload32 + i) + 4, path, sizeof(path)); break; case 0xdead0005: @@ -564,10 +564,10 @@ static inline bool patchLayeredFs(u64 progId, u8* code, u32 size) payload32[i] = 0x100000 + fsRegisterArchive; break; case 0xdead0007: - memcpy(payload32 + i, mount, 4); + memcpy(payload32 + i, archiveName, 4); break; case 0xdead0008: - payload32[i] = archive; + payload32[i] = archiveId; break; } }