pm: Launch set.mitm earlier in boot.

This commit is contained in:
Michael Scire 2019-01-20 22:21:49 -08:00
parent 2165555170
commit f61f5feaf4
3 changed files with 45 additions and 8 deletions

View file

@ -148,15 +148,15 @@ void __appExit(void) {
int main(int argc, char **argv)
{
Thread process_track_thread = {0};
HosThread process_track_thread;
consoleDebugInit(debugDevice_SVC);
/* Initialize and spawn the Process Tracking thread. */
Registration::InitializeSystemResources();
if (R_FAILED(threadCreate(&process_track_thread, &ProcessTracking::MainLoop, NULL, 0x4000, 0x15, 0))) {
if (R_FAILED(process_track_thread.Initialize(&ProcessTracking::MainLoop, NULL, 0x4000, 0x15))) {
/* TODO: Panic. */
}
if (R_FAILED(threadStart(&process_track_thread))) {
if (R_FAILED(process_track_thread.Start())) {
/* TODO: Panic. */
}