Added ipcimpl for am and hid.

This commit is contained in:
yellows8 2017-12-06 17:44:25 -05:00
parent 99c42d1edb
commit 3faa896a4f
2 changed files with 29 additions and 0 deletions

23
ipcimpl/am.cpp Normal file
View file

@ -0,0 +1,23 @@
#include "Ctu.h"
uint32_t nn::am::service::ICommonStateGetter::GetEventHandle(OUT shared_ptr<KObject>& _0) {
shared_ptr<Waitable> waitobj = make_shared<Waitable>();
waitobj->signal(0);
_0 = waitobj;
return 0;
}
uint32_t nn::am::service::ICommonStateGetter::ReceiveMessage(OUT nn::am::AppletMessage& _0) {
_0 = 0xF;
return 0;
}
uint32_t nn::am::service::ICommonStateGetter::GetCurrentFocusState(OUT uint8_t& _0) {
_0 = 1;
return 0;
}
uint32_t nn::am::service::IWindowController::GetAppletResourceUserId(OUT nn::applet::AppletResourceUserId& _0) {
_0 = 1;
return 0;
}

6
ipcimpl/hid.cpp Normal file
View file

@ -0,0 +1,6 @@
#include "Ctu.h"
uint32_t nn::hid::IAppletResource::GetSharedMemoryHandle(OUT shared_ptr<KObject>& _0) {
_0 = make_shared<MemoryBlock>(0x40000, 0x1);
return 0;
}