debug_functions.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "core/hle/service/am/debug_functions.h"
  4. #include "core/hle/service/ipc_helpers.h"
  5. namespace Service::AM {
  6. IDebugFunctions::IDebugFunctions(Core::System& system_)
  7. : ServiceFramework{system_, "IDebugFunctions"} {
  8. // clang-format off
  9. static const FunctionInfo functions[] = {
  10. {0, nullptr, "NotifyMessageToHomeMenuForDebug"},
  11. {1, nullptr, "OpenMainApplication"},
  12. {10, nullptr, "PerformSystemButtonPressing"},
  13. {20, nullptr, "InvalidateTransitionLayer"},
  14. {30, nullptr, "RequestLaunchApplicationWithUserAndArgumentForDebug"},
  15. {31, nullptr, "RequestLaunchApplicationByApplicationLaunchInfoForDebug"},
  16. {40, nullptr, "GetAppletResourceUsageInfo"},
  17. {50, nullptr, "AddSystemProgramIdAndAppletIdForDebug"},
  18. {51, nullptr, "AddOperationConfirmedLibraryAppletIdForDebug"},
  19. {100, nullptr, "SetCpuBoostModeForApplet"},
  20. {101, nullptr, "CancelCpuBoostModeForApplet"},
  21. {110, nullptr, "PushToAppletBoundChannelForDebug"},
  22. {111, nullptr, "TryPopFromAppletBoundChannelForDebug"},
  23. {120, nullptr, "AlarmSettingNotificationEnableAppEventReserve"},
  24. {121, nullptr, "AlarmSettingNotificationDisableAppEventReserve"},
  25. {122, nullptr, "AlarmSettingNotificationPushAppEventNotify"},
  26. {130, nullptr, "FriendInvitationSetApplicationParameter"},
  27. {131, nullptr, "FriendInvitationClearApplicationParameter"},
  28. {132, nullptr, "FriendInvitationPushApplicationParameter"},
  29. {140, nullptr, "RestrictPowerOperationForSecureLaunchModeForDebug"},
  30. {200, nullptr, "CreateFloatingLibraryAppletAccepterForDebug"},
  31. {300, nullptr, "TerminateAllRunningApplicationsForDebug"},
  32. {900, nullptr, "GetGrcProcessLaunchedSystemEvent"},
  33. };
  34. // clang-format on
  35. RegisterHandlers(functions);
  36. }
  37. IDebugFunctions::~IDebugFunctions() = default;
  38. } // namespace Service::AM