mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 03:12:15 +02:00
Module/Description instead of major_code/minor_code
This commit is contained in:
parent
6b94e5ff99
commit
6bda3f1df8
@ -12,8 +12,8 @@
|
||||
typedef struct {
|
||||
bool custom_text; ///< Whether to show a custom error message. If this is false, a default message will be shown.
|
||||
u8 pad[7];
|
||||
u32 major_code; ///< First part of the error-code.
|
||||
u32 minor_code; ///< Second part of the error-code.
|
||||
u32 module; ///< Module code.
|
||||
u32 description; ///< Description code.
|
||||
u8 pad2[8];
|
||||
char short_description[0x800]; ///< Short description.
|
||||
char detailed_description[0x800]; ///< Detailed description (displayed when the user clicks, on "Details").
|
||||
@ -43,14 +43,14 @@ void errorShow(ErrorConfig* c);
|
||||
* @param c ErrorConfig struct
|
||||
* @param code Code.
|
||||
*/
|
||||
void errorConfigSetMajorCode(ErrorConfig* c, u32 code);
|
||||
void errorConfigSetModule(ErrorConfig* c, u32 code);
|
||||
|
||||
/**
|
||||
* @brief Sets the second part of the error code.
|
||||
* @param c ErrorConfig struct
|
||||
* @param code Code.
|
||||
*/
|
||||
void errorConfigSetMinorCode(ErrorConfig* c, u32 code);
|
||||
void errorConfigSetDescription(ErrorConfig* c, u32 code);
|
||||
|
||||
/**
|
||||
* @brief Sets whether to use a custom error message.
|
||||
|
@ -30,12 +30,12 @@ void errorShow(ErrorConfig* c) {
|
||||
appletHolderClose(&err);
|
||||
}
|
||||
|
||||
void errorConfigSetMajorCode(ErrorConfig* c, u32 code) {
|
||||
c->major_code = code;
|
||||
void errorConfigSetModule(ErrorConfig* c, u32 code) {
|
||||
c->module = code;
|
||||
}
|
||||
|
||||
void errorConfigSetMinorCode(ErrorConfig* c, u32 code) {
|
||||
c->minor_code = code;
|
||||
void errorConfigSetDescription(ErrorConfig* c, u32 code) {
|
||||
c->description = code;
|
||||
}
|
||||
|
||||
void errorConfigSetCustomText(ErrorConfig* c, bool custom_text) {
|
||||
|
Loading…
Reference in New Issue
Block a user