From d30085ed358ff620339e622bc15d2162d118549c Mon Sep 17 00:00:00 2001 From: FearlessTobi Date: Tue, 27 Feb 2024 19:59:38 +0100 Subject: [PATCH] Address review comments --- .../hle/service/pm/debug_monitor_service.cpp | 22 +++++++++---------- src/core/hle/service/pm/pm_types.h | 10 ++++----- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/core/hle/service/pm/debug_monitor_service.cpp b/src/core/hle/service/pm/debug_monitor_service.cpp index bdaf2a4de7..6cec85927b 100644 --- a/src/core/hle/service/pm/debug_monitor_service.cpp +++ b/src/core/hle/service/pm/debug_monitor_service.cpp @@ -9,17 +9,17 @@ namespace Service::PM { DebugMonitorService::DebugMonitorService(Core::System& system_) : ServiceFramework{system_, "pm:dmnt"} { // clang-format off - static const FunctionInfo functions[] = { - {0, nullptr, "GetExceptionProcessIdList"}, - {1, nullptr, "StartProcess"}, - {2, C<&DebugMonitorService::GetProcessId>, "GetProcessId"}, - {3, nullptr, "HookToCreateProcess"}, - {4, C<&DebugMonitorService::GetApplicationProcessId>, "GetApplicationProcessId"}, - {5, nullptr, "HookToCreateApplicationProgress"}, - {6, nullptr, "ClearHook"}, - {65000, C<&DebugMonitorService::AtmosphereGetProcessInfo>, "AtmosphereGetProcessInfo"}, - {65001, nullptr, "AtmosphereGetCurrentLimitInfo"}, - }; + static const FunctionInfo functions[] = { + {0, nullptr, "GetExceptionProcessIdList"}, + {1, nullptr, "StartProcess"}, + {2, C<&DebugMonitorService::GetProcessId>, "GetProcessId"}, + {3, nullptr, "HookToCreateProcess"}, + {4, C<&DebugMonitorService::GetApplicationProcessId>, "GetApplicationProcessId"}, + {5, nullptr, "HookToCreateApplicationProcess"}, + {6, nullptr, "ClearHook"}, + {65000, C<&DebugMonitorService::AtmosphereGetProcessInfo>, "AtmosphereGetProcessInfo"}, + {65001, nullptr, "AtmosphereGetCurrentLimitInfo"}, + }; // clang-format on RegisterHandlers(functions); diff --git a/src/core/hle/service/pm/pm_types.h b/src/core/hle/service/pm/pm_types.h index 04c9650d2e..ef0a0d23f6 100644 --- a/src/core/hle/service/pm/pm_types.h +++ b/src/core/hle/service/pm/pm_types.h @@ -12,11 +12,11 @@ namespace Service::PM { constexpr Result ResultProcessNotFound{ErrorModule::PM, 1}; -[[maybe_unused]] constexpr Result ResultAlreadyStarted{ErrorModule::PM, 2}; -[[maybe_unused]] constexpr Result ResultNotTerminated{ErrorModule::PM, 3}; -[[maybe_unused]] constexpr Result ResultDebugHookInUse{ErrorModule::PM, 4}; -[[maybe_unused]] constexpr Result ResultApplicationRunning{ErrorModule::PM, 5}; -[[maybe_unused]] constexpr Result ResultInvalidSize{ErrorModule::PM, 6}; +constexpr Result ResultAlreadyStarted{ErrorModule::PM, 2}; +constexpr Result ResultNotTerminated{ErrorModule::PM, 3}; +constexpr Result ResultDebugHookInUse{ErrorModule::PM, 4}; +constexpr Result ResultApplicationRunning{ErrorModule::PM, 5}; +constexpr Result ResultInvalidSize{ErrorModule::PM, 6}; constexpr u64 NO_PROCESS_FOUND_PID{0};