Kid_Icarus_Uprising

This commit is contained in:
1 2017-10-04 20:12:30 +01:00 committed by citra
parent 8f7ac1791c
commit b57455646a
3 changed files with 20 additions and 2 deletions

View File

@ -46,6 +46,20 @@ void GetChangeStateEventHandle(Service::Interface* self) {
LOG_WARNING(Service_CECD, "(STUBBED) called");
}
void OpenAndWrite(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
cmd_buff[1] = -1;
LOG_WARNING(Service_CECD, "(STUBBED) called");
}
void OpenAndRead(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
cmd_buff[1] = -1;
LOG_WARNING(Service_CECD, "(STUBBED) called");
}
void Init() {
AddService(new CECD_NDM);
AddService(new CECD_S);

View File

@ -50,6 +50,10 @@ void GetCecInfoEventHandle(Service::Interface* self);
*/
void GetChangeStateEventHandle(Service::Interface* self);
void OpenAndWrite(Service::Interface* self);
void OpenAndRead(Service::Interface* self);
/// Initialize CECD service(s)
void Init();

View File

@ -24,8 +24,8 @@ static const Interface::FunctionInfo FunctionTable[] = {
{0x000E0000, GetCecStateAbbreviated, "GetCecStateAbbreviated"},
{0x000F0000, GetCecInfoEventHandle, "GetCecInfoEventHandle"},
{0x00100000, GetChangeStateEventHandle, "GetChangeStateEventHandle"},
{0x00110104, nullptr, "OpenAndWrite"},
{0x00120104, nullptr, "OpenAndRead"},
{0x00110104, OpenAndWrite, "OpenAndWrite"},
{0x00120104, OpenAndRead, "OpenAndRead"},
};
CECD_U::CECD_U() {