dmnt: Skeleton real process implementation.

This commit is contained in:
Michael Scire
2018-12-05 23:35:09 -08:00
parent 588315f877
commit 94e527e763
3 changed files with 183 additions and 2 deletions

View File

@@ -23,6 +23,8 @@
#include <atmosphere.h>
#include <stratosphere.hpp>
#include "dmnt_debug_monitor.hpp"
extern "C" {
extern u32 __start__;
@@ -121,8 +123,17 @@ void __appExit(void) {
int main(int argc, char **argv)
{
consoleDebugInit(debugDevice_SVC);
/* TODO: Make a server manager, and process on it. */
/* Nintendo uses four threads. */
auto server_manager = new WaitableManager(4);
/* Create services. */
server_manager->AddWaitable(new ServiceServer<DebugMonitorService>("dmnt:-", 4));
/* Loop forever, servicing our services. */
server_manager->Process();
delete server_manager;
return 0;
}