mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-06-16 03:16:50 -04:00
Added ipcimpl for am and hid.
This commit is contained in:
parent
99c42d1edb
commit
3faa896a4f
23
ipcimpl/am.cpp
Normal file
23
ipcimpl/am.cpp
Normal 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
6
ipcimpl/hid.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue