VERY experimental Nintendo Switch 2 emulator
C++
am: Implement ILibraryAppletAccessor IsCompleted and GetResult
Zach Hilman57a051a767ac
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cppindex 05e2dc6b78..cf5e2ea31c 100644--- a/src/core/frontend/applets/software_keyboard.cpp+++ b/src/core/frontend/applets/software_keyboard.cpp@@ -3,6 +3,7 @@// Refer to the license.txt file included.#include "common/logging/backend.h"+#include "common/string_util.h"#include "core/frontend/applets/software_keyboard.h"namespace Core::Frontend {diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex ea00c5c720..3201e2d4bc 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -533,7 +533,7 @@ public:// clang-format offstatic const FunctionInfo functions[] = {{0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"},- {1, nullptr, "IsCompleted"},+ {1, &ILibraryAppletAccessor::IsCompleted, "IsCompleted"},{10, &ILibraryAppletAccessor::Start, "Start"},{20, nullptr, "RequestExit"},{25, nullptr, "Terminate"},@@ -576,11 +576,15 @@ private:LOG_WARNING(Service_AM, "(STUBBED) called");}- void GetResult(Kernel::HLERequestContext& ctx) {- IPC::ResponseBuilder rb{ctx, 2};+ void IsCompleted(Kernel::HLERequestContext& ctx) {+ IPC::ResponseBuilder rb{ctx, 3};rb.Push(RESULT_SUCCESS);+ rb.Push<u32>(applet->TransactionComplete());+ }- LOG_WARNING(Service_AM, "(STUBBED) called");+ void GetResult(Kernel::HLERequestContext& ctx) {+ IPC::ResponseBuilder rb{ctx, 2};+ rb.Push(applet->GetStatus());}void Start(Kernel::HLERequestContext& ctx) {