aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
diff options
context:
space:
mode:
authorThomas Guillemard <me@thog.eu>2019-11-08 15:49:48 +0100
committerAc_K <Acoustik666@gmail.com>2019-11-08 15:49:48 +0100
commit2ea8d5bd5ffd564f0c28b96846c3c3865adc93e2 (patch)
tree7525ec294bed77d2804123b0adbd2a6941d777c8 /Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
parent88593bf8727e0da05a8f319951dce19f27e287d6 (diff)
Improve IRoInterface logic (#809)
* hle: Improve IRoInterface logic This commit contains a little rewrite of IRoInterface to fix some issues that we were facing on some recent games (AC3 Remastered & Final Fantasy VIII Remastered) Related issues: - https://github.com/Ryujinx/Ryujinx-Games-List/issues/196 * Address comments
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
new file mode 100644
index 00000000..ab1c6ac8
--- /dev/null
+++ b/Ryujinx.HLE/HOS/Services/Ro/ResultCode.cs
@@ -0,0 +1,27 @@
+namespace Ryujinx.HLE.HOS.Services.Ro
+{
+ enum ResultCode
+ {
+ ModuleId = 22,
+ ErrorCodeShift = 22,
+
+ Success = 0,
+
+ InsufficientAddressSpace = (2 << ErrorCodeShift) | ModuleId,
+ AlreadyLoaded = (3 << ErrorCodeShift) | ModuleId,
+ InvalidNro = (4 << ErrorCodeShift) | ModuleId,
+ InvalidNrr = (6 << ErrorCodeShift) | ModuleId,
+ TooManyNro = (7 << ErrorCodeShift) | ModuleId,
+ TooManyNrr = (8 << ErrorCodeShift) | ModuleId,
+ NotAuthorized = (9 << ErrorCodeShift) | ModuleId,
+
+ InvalidNrrType = (10 << ErrorCodeShift) | ModuleId,
+
+ InvalidAddress = (1025 << ErrorCodeShift) | ModuleId,
+ InvalidSize = (1026 << ErrorCodeShift) | ModuleId,
+ NotLoaded = (1028 << ErrorCodeShift) | ModuleId,
+ NotRegistered = (1029 << ErrorCodeShift) | ModuleId,
+ InvalidSession = (1030 << ErrorCodeShift) | ModuleId,
+ InvalidProcess = (1031 << ErrorCodeShift) | ModuleId,
+ }
+} \ No newline at end of file