Address review comments

This commit is contained in:
FearlessTobi 2024-02-27 19:59:38 +01:00
parent 1e0010e8aa
commit d30085ed35
2 changed files with 16 additions and 16 deletions

View File

@ -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);

View File

@ -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};