VERY experimental Nintendo Switch 2 emulator
C++
service/am: Add function table for IDebugFunctions
Lioncash5af93ea99476
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex c750d70ac2..9c44e27c69 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -215,7 +215,21 @@ IDisplayController::IDisplayController() : ServiceFramework("IDisplayController"IDisplayController::~IDisplayController() = default;-IDebugFunctions::IDebugFunctions() : ServiceFramework("IDebugFunctions") {}+IDebugFunctions::IDebugFunctions() : ServiceFramework{"IDebugFunctions"} {+ // clang-format off+ static const FunctionInfo functions[] = {+ {0, nullptr, "NotifyMessageToHomeMenuForDebug"},+ {1, nullptr, "OpenMainApplication"},+ {10, nullptr, "EmulateButtonEvent"},+ {20, nullptr, "InvalidateTransitionLayer"},+ {30, nullptr, "RequestLaunchApplicationWithUserAndArgumentForDebug"},+ {40, nullptr, "GetAppletResourceUsageInfo"},+ };+ // clang-format on++ RegisterHandlers(functions);+}+IDebugFunctions::~IDebugFunctions() = default;ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)