HBLDR_DebugNextApplicationByForce changes
This commit is contained in:
@@ -80,5 +80,18 @@ Result HBLDR_PatchExHeaderInfo(ExHeader_Info *exheaderInfo)
|
||||
Result rc = svcSendSyncRequest(hbldrHandle);
|
||||
if (R_SUCCEEDED(rc)) rc = cmdbuf[1];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result HBLDR_DebugNextApplicationByForce(bool dryRun)
|
||||
{
|
||||
u32* cmdbuf = getThreadCommandBuffer();
|
||||
|
||||
cmdbuf[0] = IPC_MakeHeader(5, 1, 0); // 0x50040
|
||||
cmdbuf[1] = dryRun ? 1 : 0;
|
||||
|
||||
Result rc = svcSendSyncRequest(hbldrHandle);
|
||||
if (R_SUCCEEDED(rc)) rc = cmdbuf[1];
|
||||
|
||||
return rc;
|
||||
}
|
||||
@@ -11,3 +11,4 @@ Result HBLDR_LoadProcess(Handle *outCodeSet, u32 textAddr, u32 kernelFlags, u64
|
||||
Result HBLDR_SetTarget(const char* path);
|
||||
Result HBLDR_SetArgv(const void* buffer, size_t size);
|
||||
Result HBLDR_PatchExHeaderInfo(ExHeader_Info *exheaderInfo);
|
||||
Result HBLDR_DebugNextApplicationByForce(bool dryRun);
|
||||
|
||||
Reference in New Issue
Block a user