aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolcaEM <63682805+VolcaEM@users.noreply.github.com>2020-05-03 17:06:30 +0200
committerGitHub <noreply@github.com>2020-05-03 17:06:30 +0200
commitcf1ea4d155d1cc11bc8105acfb7049d08e28336c (patch)
treec78fffde236315adfef9234cce4d5161c5ca5055
parent676fc73885f33ee1a49733c4433fe8bac3c61f50 (diff)
Add various error codes to BCAT (#1202)
* Add various error codes to BCAT The error codes were taken from Switchbrew (switchbrew.org/wiki/Error_codes) As for InternetRequestDenied, it seems that this error is common for multiple services like Account for example I already added this error code in Account in PR #1182 * Add some results codes from Libhac and keep names consistent
-rw-r--r--Ryujinx.HLE/HOS/Services/Bcat/ResultCode.cs23
1 files changed, 19 insertions, 4 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Bcat/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Bcat/ResultCode.cs
index bc13d9dd..7f1b313e 100644
--- a/Ryujinx.HLE/HOS/Services/Bcat/ResultCode.cs
+++ b/Ryujinx.HLE/HOS/Services/Bcat/ResultCode.cs
@@ -7,8 +7,23 @@ namespace Ryujinx.HLE.HOS.Services.Bcat
Success = 0,
- NullArgument = (2 << ErrorCodeShift) | ModuleId,
- NullSaveData = (31 << ErrorCodeShift) | ModuleId,
- NullObject = (91 << ErrorCodeShift) | ModuleId
+ InvalidArgument = (1 << ErrorCodeShift) | ModuleId,
+ NotFound = (2 << ErrorCodeShift) | ModuleId,
+ TargetLocked = (3 << ErrorCodeShift) | ModuleId,
+ TargetAlreadyMounted = (4 << ErrorCodeShift) | ModuleId,
+ TargetNotMounted = (5 << ErrorCodeShift) | ModuleId,
+ AlreadyOpen = (6 << ErrorCodeShift) | ModuleId,
+ NotOpen = (7 << ErrorCodeShift) | ModuleId,
+ InternetRequestDenied = (8 << ErrorCodeShift) | ModuleId,
+ ServiceOpenLimitReached = (9 << ErrorCodeShift) | ModuleId,
+ SaveDataNotFound = (10 << ErrorCodeShift) | ModuleId,
+ NetworkServiceAccountNotAvailable = (31 << ErrorCodeShift) | ModuleId,
+ PassphrasePathNotFound = (80 << ErrorCodeShift) | ModuleId,
+ DataVerificationFailed = (81 << ErrorCodeShift) | ModuleId,
+ PermissionDenied = (90 << ErrorCodeShift) | ModuleId,
+ AllocationFailed = (91 << ErrorCodeShift) | ModuleId,
+ InvalidOperation = (98 << ErrorCodeShift) | ModuleId,
+ InvalidDeliveryCacheStorageFile = (204 << ErrorCodeShift) | ModuleId,
+ StorageOpenLimitReached = (205 << ErrorCodeShift) | ModuleId
}
-} \ No newline at end of file
+}