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";
|
char path[] = "/luma/titles/0000000000000000/romfs";
|
||||||
progIdToStr(path + 28, progId);
|
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,
|
u32 fsMountArchive = 0xFFFFFFFF,
|
||||||
fsRegisterArchive = 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);
|
payload32[i] = MAKE_BRANCH(payloadOffset + i * 4, fsTryOpenFile + 4);
|
||||||
break;
|
break;
|
||||||
case 0xdead0004:
|
case 0xdead0004:
|
||||||
memcpy(payload32 + i, mount, 4);
|
memcpy(payload32 + i, archiveName, 4);
|
||||||
memcpy((u8 *)(payload32 + i) + 4, path, sizeof(path));
|
memcpy((u8 *)(payload32 + i) + 4, path, sizeof(path));
|
||||||
break;
|
break;
|
||||||
case 0xdead0005:
|
case 0xdead0005:
|
||||||
@ -564,10 +564,10 @@ static inline bool patchLayeredFs(u64 progId, u8* code, u32 size)
|
|||||||
payload32[i] = 0x100000 + fsRegisterArchive;
|
payload32[i] = 0x100000 + fsRegisterArchive;
|
||||||
break;
|
break;
|
||||||
case 0xdead0007:
|
case 0xdead0007:
|
||||||
memcpy(payload32 + i, mount, 4);
|
memcpy(payload32 + i, archiveName, 4);
|
||||||
break;
|
break;
|
||||||
case 0xdead0008:
|
case 0xdead0008:
|
||||||
payload32[i] = archive;
|
payload32[i] = archiveId;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user