aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Objects/ErrorCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Core/OsHle/Objects/ErrorCode.cs')
-rw-r--r--Ryujinx.Core/OsHle/Objects/ErrorCode.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Objects/ErrorCode.cs b/Ryujinx.Core/OsHle/Objects/ErrorCode.cs
new file mode 100644
index 00000000..20f97f84
--- /dev/null
+++ b/Ryujinx.Core/OsHle/Objects/ErrorCode.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace Ryujinx.Core.OsHle.Objects
+{
+ static class ErrorCode
+ {
+ public static long MakeError(ErrorModule Module, int Code)
+ {
+ return (int)Module | (Code << 9);
+ }
+ }
+} \ No newline at end of file