VERY experimental Nintendo Switch 2 emulator
C++
APT_U: added stubbed function for APT_U::Enable, fixed some log messages to be more consistent
bunnei3972d4ca8ba8
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cppindex 67c53529a7..ae040562c1 100644--- a/src/core/hle/service/apt.cpp+++ b/src/core/hle/service/apt.cpp@@ -17,7 +17,7 @@ namespace APT_U {void Initialize(Service::Interface* self) {u32* cmd_buff = Service::GetCommandBuffer();- DEBUG_LOG(KERNEL, "APT_U::Sync - Initialize");+ DEBUG_LOG(KERNEL, "APT_U::Initialize called");cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handlecmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle@@ -33,13 +33,20 @@ void GetLockHandle(Service::Interface* self) {u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag fieldcmd_buff[1] = 0; // No errorcmd_buff[5] = Kernel::CreateMutex(false);- DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called : created handle 0x%08X", cmd_buff[5]);+ DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called handle=0x%08X", cmd_buff[5]);+}++void Enable(Service::Interface* self) {+ u32* cmd_buff = Service::GetCommandBuffer();+ u32 unk = cmd_buff[1]; // TODO(bunnei): What is this field used for?+ cmd_buff[1] = 0; // No error+ ERROR_LOG(KERNEL, "(UNIMPEMENTED) APT_U::Enable called unk=0x%08X", unk);}const Interface::FunctionInfo FunctionTable[] = {{0x00010040, GetLockHandle, "GetLockHandle"},{0x00020080, Initialize, "Initialize"},- {0x00030040, NULL, "Enable"},+ {0x00030040, Enable, "Enable"},{0x00040040, NULL, "Finalize"},{0x00050040, NULL, "GetAppletManInfo"},{0x00060040, NULL, "GetAppletInfo"},