Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
b247e0ca
There was an error fetching the commit references. Please try again later.
Commit
b247e0ca
authored
6 years ago
by
Zach Hilman
Browse files
Options
Downloads
Patches
Plain Diff
loader: Add new NAX-specific errors and messages
parent
2164702c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/loader/loader.cpp
+14
-1
14 additions, 1 deletion
src/core/loader/loader.cpp
src/core/loader/loader.h
+13
-0
13 additions, 0 deletions
src/core/loader/loader.h
with
27 additions
and
1 deletion
src/core/loader/loader.cpp
+
14
−
1
View file @
b247e0ca
...
@@ -87,7 +87,7 @@ std::string GetFileTypeString(FileType type) {
...
@@ -87,7 +87,7 @@ std::string GetFileTypeString(FileType type) {
return
"unknown"
;
return
"unknown"
;
}
}
constexpr
std
::
array
<
const
char
*
,
36
>
RESULT_MESSAGES
{
constexpr
std
::
array
<
const
char
*
,
49
>
RESULT_MESSAGES
{
"The operation completed successfully."
,
"The operation completed successfully."
,
"The loader requested to load is already loaded."
,
"The loader requested to load is already loaded."
,
"The operation is not implemented."
,
"The operation is not implemented."
,
...
@@ -124,6 +124,19 @@ constexpr std::array<const char*, 36> RESULT_MESSAGES{
...
@@ -124,6 +124,19 @@ constexpr std::array<const char*, 36> RESULT_MESSAGES{
"There was a general error loading the NRO into emulated memory."
,
"There was a general error loading the NRO into emulated memory."
,
"There is no icon available."
,
"There is no icon available."
,
"There is no control data available."
,
"There is no control data available."
,
"The NAX file has a bad header."
,
"The NAX file has incorrect size as determined by the header."
,
"The HMAC to generated the NAX decryption keys failed."
,
"The HMAC to validate the NAX decryption keys failed."
,
"The NAX key derivation failed."
,
"The NAX file cannot be interpreted as an NCA file."
,
"The NAX file has an incorrect path."
,
"The SD seed could not be found or derived."
,
"The SD KEK Source could not be found."
,
"The AES KEK Generation Source could not be found."
,
"The AES Key Generation Source could not be found."
,
"The SD Save Key Source could not be found."
,
"The SD NCA Key Source could not be found."
,
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
ResultStatus
status
)
{
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
ResultStatus
status
)
{
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/loader.h
+
13
−
0
View file @
b247e0ca
...
@@ -94,6 +94,19 @@ enum class ResultStatus : u16 {
...
@@ -94,6 +94,19 @@ enum class ResultStatus : u16 {
ErrorLoadingNRO
,
ErrorLoadingNRO
,
ErrorNoIcon
,
ErrorNoIcon
,
ErrorNoControl
,
ErrorNoControl
,
ErrorBadNAXHeader
,
ErrorIncorrectNAXFileSize
,
ErrorNAXKeyHMACFailed
,
ErrorNAXValidationHMACFailed
,
ErrorNAXKeyDerivationFailed
,
ErrorNAXInconvertibleToNCA
,
ErrorBadNAXFilePath
,
ErrorMissingSDSeed
,
ErrorMissingSDKEKSource
,
ErrorMissingAESKEKGenerationSource
,
ErrorMissingAESKeyGenerationSource
,
ErrorMissingSDSaveKeySource
,
ErrorMissingSDNCAKeySource
,
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
ResultStatus
status
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
ResultStatus
status
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment