Fix "debug next process" with hbldr homebrew
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
extern Menu debuggerMenu;
|
||||
|
||||
void debuggerSetNextApplicationDebugHandle(Handle debug);
|
||||
void debuggerFetchAndSetNextApplicationDebugHandleTask(void *argdata);
|
||||
void DebuggerMenu_EnableDebugger(void);
|
||||
void DebuggerMenu_DisableDebugger(void);
|
||||
void DebuggerMenu_DebugNextApplicationByForce(void);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <3ds/services/pmapp.h>
|
||||
#include <3ds/services/pmdbg.h>
|
||||
|
||||
Result PMDBG_GetCurrentAppTitleIdAndPid(u64 *outTitleId, u32 *outPid);
|
||||
Result PMDBG_DebugNextApplicationByForce(void);
|
||||
|
||||
22
sysmodules/rosalina/include/task_runner.h
Normal file
22
sysmodules/rosalina/include/task_runner.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <3ds/types.h>
|
||||
#include <3ds/synchronization.h>
|
||||
#include "MyThread.h"
|
||||
|
||||
typedef struct TaskRunner {
|
||||
LightEvent readyEvent;
|
||||
LightEvent parametersSetEvent;
|
||||
void (*task)(void *argdata);
|
||||
u8 argStorage[0x40];
|
||||
} TaskRunner;
|
||||
|
||||
extern TaskRunner g_taskRunner;
|
||||
|
||||
MyThread *taskRunnerCreateThread(void);
|
||||
|
||||
void TaskRunner_Init(void);
|
||||
void TaskRunner_RunTask(void (*task)(void *argdata), void *argdata, size_t argsize);
|
||||
/// Thread function
|
||||
void TaskRunner_HandleTasks(void);
|
||||
void TaskRunner_WaitReady(void);
|
||||
Reference in New Issue
Block a user