From 6bda3f1df81077bdba1db55250f6dd2fec8daacf Mon Sep 17 00:00:00 2001 From: Liam Minopulos Date: Thu, 28 Feb 2019 08:57:55 +0100 Subject: [PATCH] Module/Description instead of major_code/minor_code --- nx/include/switch/applets/error.h | 8 ++++---- nx/source/applets/error.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nx/include/switch/applets/error.h b/nx/include/switch/applets/error.h index 30a60ade..c978dc75 100644 --- a/nx/include/switch/applets/error.h +++ b/nx/include/switch/applets/error.h @@ -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. diff --git a/nx/source/applets/error.cpp b/nx/source/applets/error.cpp index 62c6d7d5..1dff4ac1 100644 --- a/nx/source/applets/error.cpp +++ b/nx/source/applets/error.cpp @@ -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) {