From eb11e25dc5f49091a85dddf0c423c9640b2b5fda Mon Sep 17 00:00:00 2001 From: fincs Date: Thu, 27 Sep 2018 21:00:47 +0200 Subject: [PATCH] Add Module_HomebrewAbi/Loader. Reassign Module_LibnxBinder, as it inadvertently collided with Module_HomebrewLoader. --- nx/include/switch/result.h | 4 +++- nx/source/runtime/env.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/result.h b/nx/include/switch/result.h index a2b569f5..034840b0 100644 --- a/nx/include/switch/result.h +++ b/nx/include/switch/result.h @@ -23,8 +23,10 @@ enum { Module_Kernel=1, Module_Libnx=345, - Module_LibnxBinder=347, + Module_HomebrewAbi=346, + Module_HomebrewLoader=347, Module_LibnxNvidia=348, + Module_LibnxBinder=349, }; /// Kernel error codes diff --git a/nx/source/runtime/env.c b/nx/source/runtime/env.c index 1cc7eb44..aec66594 100644 --- a/nx/source/runtime/env.c +++ b/nx/source/runtime/env.c @@ -93,7 +93,7 @@ void envSetup(void* ctx, Handle main_thread, LoaderReturnFn saved_lr) if (ent->Flags & EntryFlag_IsMandatory) { // Encountered unknown but mandatory key, bail back to loader. - __nx_exit(MAKERESULT(346, 100 + ent->Key), g_loaderRetAddr); + __nx_exit(MAKERESULT(Module_HomebrewAbi, 100 + ent->Key), g_loaderRetAddr); } break;