diff --git a/src/core/hle/service/cecd/cecd.cpp b/src/core/hle/service/cecd/cecd.cpp index 421006a9e..c60efb7d2 100644 --- a/src/core/hle/service/cecd/cecd.cpp +++ b/src/core/hle/service/cecd/cecd.cpp @@ -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); diff --git a/src/core/hle/service/cecd/cecd.h b/src/core/hle/service/cecd/cecd.h index ea97f9266..3999474ec 100644 --- a/src/core/hle/service/cecd/cecd.h +++ b/src/core/hle/service/cecd/cecd.h @@ -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(); diff --git a/src/core/hle/service/cecd/cecd_u.cpp b/src/core/hle/service/cecd/cecd_u.cpp index 3ed864f0b..4d04445fb 100644 --- a/src/core/hle/service/cecd/cecd_u.cpp +++ b/src/core/hle/service/cecd/cecd_u.cpp @@ -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() {