dmnt-cheat: skeleton decode, fix missing libnx call

This commit is contained in:
Michael Scire 2019-03-03 06:44:21 -08:00
parent bc6ad53018
commit af70a4a3a3
3 changed files with 103 additions and 7 deletions

View file

@ -57,6 +57,8 @@ void __libnx_initheap(void) {
void __appInit(void) {
Result rc;
SetFirmwareVersionForLibnx();
rc = smInitialize();
if (R_FAILED(rc)) {
fatalSimple(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM));
@ -133,7 +135,11 @@ int main(int argc, char **argv)
auto server_manager = new WaitableManager(5);
/* Create services. */
server_manager->AddWaitable(new ServiceServer<DebugMonitorService>("dmnt:-", 4));
/* TODO: Implement rest of dmnt:- in ams.tma development branch. */
/* server_manager->AddWaitable(new ServiceServer<DebugMonitorService>("dmnt:-", 4)); */
server_manager->AddWaitable(new ServiceServer<DmntCheatService>("dmnt:cht", 1));
/* Loop forever, servicing our services. */