aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolcaEM <63682805+VolcaEM@users.noreply.github.com>2020-05-04 13:22:28 +0200
committerGitHub <noreply@github.com>2020-05-04 13:22:28 +0200
commit232d53a1ffc260a6592b0cadc652d3cb4907fb4d (patch)
treeae2ba11d7a659a9174193b85dbaae834243b9e1c
parent15d1cc806b1b978bab83d8bb426a124d9f0f788c (diff)
Add various error codes to Loader (#1208)
* Add various result codes to Loader The error codes were taken from Switchbrew (switchbrew.org/wiki/Error_codes) For the last 9 errors, Switchbrew says: ACID/ACI0 don't match for descriptor (descriptor) * Fix typo
-rw-r--r--Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs35
1 files changed, 34 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs
index 35fd4dcb..170dfa01 100644
--- a/Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs
+++ b/Ryujinx.HLE/HOS/Services/Loader/ResultCode.cs
@@ -6,5 +6,38 @@
ErrorCodeShift = 9,
Success = 0,
+
+ ArgsTooLong = (1 << ErrorCodeShift) | ModuleId,
+ MaximumProcessesLoaded = (2 << ErrorCodeShift) | ModuleId,
+ NPDMTooBig = (3 << ErrorCodeShift) | ModuleId,
+ InvalidNPDM = (4 << ErrorCodeShift) | ModuleId,
+ InvalidNSO = (5 << ErrorCodeShift) | ModuleId,
+ InvalidPath = (6 << ErrorCodeShift) | ModuleId,
+ AlreadyRegistered = (7 << ErrorCodeShift) | ModuleId,
+ TitleNotFound = (8 << ErrorCodeShift) | ModuleId,
+ ACI0TitleIdNotMatchingRangeInACID = (9 << ErrorCodeShift) | ModuleId,
+ InvalidVersionInNPDM = (10 << ErrorCodeShift) | ModuleId,
+ InsufficientAddressSpace = (51 << ErrorCodeShift) | ModuleId,
+ InsufficientNRO = (52 << ErrorCodeShift) | ModuleId,
+ InvalidNRR = (53 << ErrorCodeShift) | ModuleId,
+ InvalidSignature = (54 << ErrorCodeShift) | ModuleId,
+ InsufficientNRORegistrations = (55 << ErrorCodeShift) | ModuleId,
+ InsufficientNRRRegistrations = (56 << ErrorCodeShift) | ModuleId,
+ NROAlreadyLoaded = (57 << ErrorCodeShift) | ModuleId,
+ UnalignedNRRAddress = (81 << ErrorCodeShift) | ModuleId,
+ BadNRRSize = (82 << ErrorCodeShift) | ModuleId,
+ NRRNotLoaded = (84 << ErrorCodeShift) | ModuleId,
+ BadNRRAddress = (85 << ErrorCodeShift) | ModuleId,
+ BadInitialization = (87 << ErrorCodeShift) | ModuleId,
+ UnknownACI0Descriptor = (100 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingKernelFlagsDescriptor = (103 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingSyscallMaskDescriptor = (104 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingMapIoOrNormalRangeDescriptor = (106 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingMapNormalPageDescriptor = (107 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingInterruptPairDescriptor = (111 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingApplicationTypeDescriptor = (113 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingKernelReleaseVersionDescriptor = (114 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingHandleTableSizeDescriptor = (115 << ErrorCodeShift) | ModuleId,
+ ACI0NotMatchingDebugFlagsDescriptor = (116 << ErrorCodeShift) | ModuleId
}
-} \ No newline at end of file
+}