Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c913de1e67 | ||
|
|
c9a578734e |
@@ -536,7 +536,7 @@ static inline bool patchLayeredFs(u64 progId, u8 *code, u32 size, u32 textSize,
|
|||||||
romfsRedirPatchFsMountArchive = 0x100000 + fsMountArchive;
|
romfsRedirPatchFsMountArchive = 0x100000 + fsMountArchive;
|
||||||
romfsRedirPatchFsRegisterArchive = 0x100000 + fsRegisterArchive;
|
romfsRedirPatchFsRegisterArchive = 0x100000 + fsRegisterArchive;
|
||||||
romfsRedirPatchArchiveId = archiveId;
|
romfsRedirPatchArchiveId = archiveId;
|
||||||
memcpy(&romfsRedirPatchRomFsMount, updateRomFsMounts[updateRomFsIndex], 4);
|
memcpy(&romfsRedirPatchUpdateRomFsMount, updateRomFsMounts[updateRomFsIndex], 4);
|
||||||
|
|
||||||
memcpy(payload, romfsRedirPatch, romfsRedirPatchSize);
|
memcpy(payload, romfsRedirPatch, romfsRedirPatchSize);
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ Result registerProgram(u64 *programHandle, const FS_ProgramInfo *programInfo, co
|
|||||||
Result res = 0;
|
Result res = 0;
|
||||||
|
|
||||||
if (IS_N3DS) {
|
if (IS_N3DS) {
|
||||||
|
if (pi.programId >> 48 == 0xFFFF) {
|
||||||
|
return LOADER_RegisterProgram(programHandle, &pi, &piu);
|
||||||
|
}
|
||||||
pi.programId = (pi.programId & ~N3DS_TID_MASK) | N3DS_TID_BIT;
|
pi.programId = (pi.programId & ~N3DS_TID_MASK) | N3DS_TID_BIT;
|
||||||
piu.programId = (piu.programId & ~N3DS_TID_MASK) | N3DS_TID_BIT;
|
piu.programId = (piu.programId & ~N3DS_TID_MASK) | N3DS_TID_BIT;
|
||||||
res = LOADER_RegisterProgram(programHandle, &pi, &piu);
|
res = LOADER_RegisterProgram(programHandle, &pi, &piu);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Result UnregisterProcess(u64 titleId)
|
|||||||
ProcessData *foundProcess = NULL;
|
ProcessData *foundProcess = NULL;
|
||||||
|
|
||||||
ProcessList_Lock(&g_manager.processList);
|
ProcessList_Lock(&g_manager.processList);
|
||||||
foundProcess = ProcessList_FindProcessByTitleId(&g_manager.processList, titleId);
|
foundProcess = ProcessList_FindProcessByTitleId(&g_manager.processList, titleId & ~N3DS_TID_MASK);
|
||||||
if (foundProcess != NULL) {
|
if (foundProcess != NULL) {
|
||||||
if (foundProcess == g_manager.runningApplicationData) {
|
if (foundProcess == g_manager.runningApplicationData) {
|
||||||
g_manager.runningApplicationData = NULL;
|
g_manager.runningApplicationData = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user