Only setup homebrew bootstub when launcherPath is set

This commit is contained in:
Gericom
2026-01-10 16:35:00 +01:00
parent a17194dc67
commit 0ba88b55b7
4 changed files with 31 additions and 32 deletions

View File

@@ -233,9 +233,8 @@ static void handleBootCommand()
bootArm9();
}
static void handleApplyHomebrewPatches(u32 dldiRequiredSpace)
static void handleSetupHomebrewBootstub(u32 dldiRequiredSpace)
{
// Insert bootstub
PatchHeap patchHeap;
PatchCodeCollection patchCodeCollection;
void* patchSpace = (void*)&HOMEBREW_BOOTSTUB[1];
@@ -328,10 +327,10 @@ static void handleArm7Command(u32 command)
handleBootCommand();
break;
}
case IPC_COMMAND_ARM9_APPLY_HOMEBREW_PATCHES:
case IPC_COMMAND_ARM9_SETUP_HOMEBREW_BOOTSTUB:
{
u32 dldiRequiredSpace = receiveFromArm7();
handleApplyHomebrewPatches(dldiRequiredSpace);
handleSetupHomebrewBootstub(dldiRequiredSpace);
break;
}
}