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;