summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-28 05:56:57 +0100
committerbunnei <bunneidev@gmail.com>2021-01-11 23:23:16 +0100
commit1ae883435d429d7e2d5b6bcc35d6d73a17411544 (patch)
tree1e364d62be7ddee9475c057a5da8315174be8f3b /src/core
parenthle: service: nfp: Remove incorrect signaling behavior in GetDeviceState. (diff)
downloadyuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.tar
yuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.tar.gz
yuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.tar.bz2
yuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.tar.lz
yuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.tar.xz
yuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.tar.zst
yuzu-1ae883435d429d7e2d5b6bcc35d6d73a17411544.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CMakeLists.txt1
-rw-r--r--src/core/hle/kernel/svc_results.h20
2 files changed, 21 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 893df433a..d0c1beaf7 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -210,6 +210,7 @@ add_library(core STATIC
hle/kernel/shared_memory.h
hle/kernel/svc.cpp
hle/kernel/svc.h
+ hle/kernel/svc_results.h
hle/kernel/svc_types.h
hle/kernel/svc_wrap.h
hle/kernel/synchronization_object.cpp
diff --git a/src/core/hle/kernel/svc_results.h b/src/core/hle/kernel/svc_results.h
new file mode 100644
index 000000000..78282f021
--- /dev/null
+++ b/src/core/hle/kernel/svc_results.h
@@ -0,0 +1,20 @@
+// Copyright 2020 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/result.h"
+
+namespace Kernel::Svc {
+
+constexpr ResultCode ResultTerminationRequested{ErrorModule::Kernel, 59};
+constexpr ResultCode ResultInvalidAddress{ErrorModule::Kernel, 102};
+constexpr ResultCode ResultInvalidCurrentMemory{ErrorModule::Kernel, 106};
+constexpr ResultCode ResultInvalidHandle{ErrorModule::Kernel, 114};
+constexpr ResultCode ResultTimedOut{ErrorModule::Kernel, 117};
+constexpr ResultCode ResultCancelled{ErrorModule::Kernel, 118};
+constexpr ResultCode ResultInvalidEnumValue{ErrorModule::Kernel, 120};
+constexpr ResultCode ResultInvalidState{ErrorModule::Kernel, 125};
+
+} // namespace Kernel::Svc