mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-22 02:45:07 -04:00
dmnt: Skeleton real process implementation.
This commit is contained in:
parent
588315f877
commit
94e527e763
3 changed files with 183 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue