This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/sysmodules/pm/source/manager.h
2020-05-10 02:58:21 +01:00

25 lines
690 B
C

#pragma once
#include <3ds/types.h>
#include "process_data.h"
typedef struct Manager {
ProcessList processList;
ProcessData *runningApplicationData;
ProcessData *debugData; // note: official PM uses runningApplicationData for both, and has queuedApplicationProcessHandle
Handle reslimits[4];
Handle newProcessEvent;
Handle allNotifiedTerminationEvent;
bool waitingForTermination;
bool preparingForReboot;
u8 maxAppCpuTime;
s8 cpuTimeBase;
} Manager;
extern Manager g_manager;
void Manager_Init(void *procBuf, size_t numProc);
void Manager_RegisterKips(void);
Result UnregisterProcess(u64 titleId);
Result PrepareToChainloadHomebrew(u64 titleId);