summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-11-21 01:42:30 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-11-21 02:56:28 +0100
commit3dc38d185b595ef2cf1d539f7bc68554999cd1db (patch)
tree851dfbcf8238136b72524337c74c11f28c962e49 /src/core
parentservice: pm: Rename title id to program id (diff)
downloadyuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.tar
yuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.tar.gz
yuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.tar.bz2
yuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.tar.lz
yuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.tar.xz
yuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.tar.zst
yuzu-3dc38d185b595ef2cf1d539f7bc68554999cd1db.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/pm/pm.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp
index 969300795..b2e97a218 100644
--- a/src/core/hle/service/pm/pm.cpp
+++ b/src/core/hle/service/pm/pm.cpp
@@ -13,7 +13,12 @@ namespace Service::PM {
namespace {
-constexpr ResultCode ERROR_PROCESS_NOT_FOUND{ErrorModule::PM, 1};
+constexpr ResultCode ResultProcessNotFound{ErrorModule::PM, 1};
+[[maybe_unused]] constexpr ResultCode ResultAlreadyStarted{ErrorModule::PM, 2};
+[[maybe_unused]] constexpr ResultCode ResultNotTerminated{ErrorModule::PM, 3};
+[[maybe_unused]] constexpr ResultCode ResultDebugHookInUse{ErrorModule::PM, 4};
+[[maybe_unused]] constexpr ResultCode ResultApplicationRunning{ErrorModule::PM, 5};
+[[maybe_unused]] constexpr ResultCode ResultInvalidSize{ErrorModule::PM, 6};
constexpr u64 NO_PROCESS_FOUND_PID{0};
@@ -106,7 +111,7 @@ private:
if (!process.has_value()) {
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERROR_PROCESS_NOT_FOUND);
+ rb.Push(ResultProcessNotFound);
return;
}
@@ -146,7 +151,7 @@ private:
if (!process.has_value()) {
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ERROR_PROCESS_NOT_FOUND);
+ rb.Push(ResultProcessNotFound);
return;
}