mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-25 10:05:40 +01:00
Address review comments
This commit is contained in:
parent
1e0010e8aa
commit
d30085ed35
@ -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);
|
||||
|
@ -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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user