summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-10 18:23:39 -0400
committerGravatar Lioncash2019-03-10 18:23:42 -0400
commitd870cc5ad710b04fae15baee85e0fa0f4df1e8a0 (patch)
tree74175f4eff4fa6cd305d66a723cc5b422cccd563 /src
parentMerge pull request #2207 from lioncash/hwopus (diff)
downloadyuzu-d870cc5ad710b04fae15baee85e0fa0f4df1e8a0.tar.gz
yuzu-d870cc5ad710b04fae15baee85e0fa0f4df1e8a0.tar.xz
yuzu-d870cc5ad710b04fae15baee85e0fa0f4df1e8a0.zip
core/hle/result: Relocate IPC error code to ipc_helpers
Relocates the error code to where it's most related, similar to how all the other error codes are. Previously we were including a non-generic error in the main result code header.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/ipc_helpers.h3
-rw-r--r--src/core/hle/result.h1
-rw-r--r--src/core/hle/service/service.cpp3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h
index 079283830..fc997c3b7 100644
--- a/src/core/hle/ipc_helpers.h
+++ b/src/core/hle/ipc_helpers.h
@@ -19,9 +19,12 @@
19#include "core/hle/kernel/hle_ipc.h" 19#include "core/hle/kernel/hle_ipc.h"
20#include "core/hle/kernel/object.h" 20#include "core/hle/kernel/object.h"
21#include "core/hle/kernel/server_session.h" 21#include "core/hle/kernel/server_session.h"
22#include "core/hle/result.h"
22 23
23namespace IPC { 24namespace IPC {
24 25
26constexpr ResultCode ERR_REMOTE_PROCESS_DEAD{ErrorModule::HIPC, 301};
27
25class RequestHelperBase { 28class RequestHelperBase {
26protected: 29protected:
27 Kernel::HLERequestContext* context = nullptr; 30 Kernel::HLERequestContext* context = nullptr;
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 1ed144481..9f6ac39e6 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -17,7 +17,6 @@
17 */ 17 */
18enum class ErrorDescription : u32 { 18enum class ErrorDescription : u32 {
19 Success = 0, 19 Success = 0,
20 RemoteProcessDead = 301,
21}; 20};
22 21
23/** 22/**
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 117f87a45..bd56cc7bf 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -11,7 +11,6 @@
11#include "core/hle/ipc.h" 11#include "core/hle/ipc.h"
12#include "core/hle/ipc_helpers.h" 12#include "core/hle/ipc_helpers.h"
13#include "core/hle/kernel/client_port.h" 13#include "core/hle/kernel/client_port.h"
14#include "core/hle/kernel/handle_table.h"
15#include "core/hle/kernel/kernel.h" 14#include "core/hle/kernel/kernel.h"
16#include "core/hle/kernel/process.h" 15#include "core/hle/kernel/process.h"
17#include "core/hle/kernel/server_port.h" 16#include "core/hle/kernel/server_port.h"
@@ -169,7 +168,7 @@ ResultCode ServiceFrameworkBase::HandleSyncRequest(Kernel::HLERequestContext& co
169 case IPC::CommandType::Close: { 168 case IPC::CommandType::Close: {
170 IPC::ResponseBuilder rb{context, 2}; 169 IPC::ResponseBuilder rb{context, 2};
171 rb.Push(RESULT_SUCCESS); 170 rb.Push(RESULT_SUCCESS);
172 return ResultCode(ErrorModule::HIPC, ErrorDescription::RemoteProcessDead); 171 return IPC::ERR_REMOTE_PROCESS_DEAD;
173 } 172 }
174 case IPC::CommandType::ControlWithContext: 173 case IPC::CommandType::ControlWithContext:
175 case IPC::CommandType::Control: { 174 case IPC::CommandType::Control: {