Change variable names for consistency
This commit is contained in:
parent
48c23f2a43
commit
9656fe1b6f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user