Stratosphere: Add debugging to loader, it can now be talked to on console successfully.

This commit is contained in:
Michael Scire
2018-04-18 16:24:40 -06:00
parent 8ba3894c3a
commit 7fed8a4428
7 changed files with 46 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
#include <switch.h>
#include <algorithm>
#include <cstdio>
#include "ldr_launch_queue.hpp"
@@ -18,6 +18,10 @@ namespace LaunchQueue {
g_launch_queue[idx].tid = tid;
g_launch_queue[idx].arg_size = arg_size;
fprintf(stderr, "TID: %016llx, args: %p, size: %016llx\n", tid, args, arg_size);
fprintf(stderr, "Args: %s\n", args);
std::copy(args, args + arg_size, g_launch_queue[idx].args);
return 0x0;
}