summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/debug_functions.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-31 02:51:23 +0100
committerLiam <byteslice@airmail.cc>2024-01-30 00:43:45 +0100
commit7de6b410305fcfcd34078e62fbe0ceedb43663f9 (patch)
treeb5f3dc0d7631852a64466f3765e62e0707b8d0c8 /src/core/hle/service/am/debug_functions.cpp
parentMerge pull request #12846 from german77/mii_const (diff)
downloadyuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.gz
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.bz2
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.lz
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.xz
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.zst
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.zip
Diffstat (limited to 'src/core/hle/service/am/debug_functions.cpp')
-rw-r--r--src/core/hle/service/am/debug_functions.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/hle/service/am/debug_functions.cpp b/src/core/hle/service/am/debug_functions.cpp
new file mode 100644
index 000000000..f80b970f2
--- /dev/null
+++ b/src/core/hle/service/am/debug_functions.cpp
@@ -0,0 +1,44 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/service/am/debug_functions.h"
+#include "core/hle/service/ipc_helpers.h"
+
+namespace Service::AM {
+
+IDebugFunctions::IDebugFunctions(Core::System& system_)
+ : ServiceFramework{system_, "IDebugFunctions"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, nullptr, "NotifyMessageToHomeMenuForDebug"},
+ {1, nullptr, "OpenMainApplication"},
+ {10, nullptr, "PerformSystemButtonPressing"},
+ {20, nullptr, "InvalidateTransitionLayer"},
+ {30, nullptr, "RequestLaunchApplicationWithUserAndArgumentForDebug"},
+ {31, nullptr, "RequestLaunchApplicationByApplicationLaunchInfoForDebug"},
+ {40, nullptr, "GetAppletResourceUsageInfo"},
+ {50, nullptr, "AddSystemProgramIdAndAppletIdForDebug"},
+ {51, nullptr, "AddOperationConfirmedLibraryAppletIdForDebug"},
+ {100, nullptr, "SetCpuBoostModeForApplet"},
+ {101, nullptr, "CancelCpuBoostModeForApplet"},
+ {110, nullptr, "PushToAppletBoundChannelForDebug"},
+ {111, nullptr, "TryPopFromAppletBoundChannelForDebug"},
+ {120, nullptr, "AlarmSettingNotificationEnableAppEventReserve"},
+ {121, nullptr, "AlarmSettingNotificationDisableAppEventReserve"},
+ {122, nullptr, "AlarmSettingNotificationPushAppEventNotify"},
+ {130, nullptr, "FriendInvitationSetApplicationParameter"},
+ {131, nullptr, "FriendInvitationClearApplicationParameter"},
+ {132, nullptr, "FriendInvitationPushApplicationParameter"},
+ {140, nullptr, "RestrictPowerOperationForSecureLaunchModeForDebug"},
+ {200, nullptr, "CreateFloatingLibraryAppletAccepterForDebug"},
+ {300, nullptr, "TerminateAllRunningApplicationsForDebug"},
+ {900, nullptr, "GetGrcProcessLaunchedSystemEvent"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+IDebugFunctions::~IDebugFunctions() = default;
+
+} // namespace Service::AM