diff --git a/nx/include/switch/runtime/env.h b/nx/include/switch/runtime/env.h index 1d2b0659..213eaa95 100644 --- a/nx/include/switch/runtime/env.h +++ b/nx/include/switch/runtime/env.h @@ -47,3 +47,4 @@ Handle envGetOwnProcessHandle(void); LoaderReturnFn envGetExitFuncPtr(void); Result envSetNextLoad(const char* path, const char* argv); +bool envHasNextLoad(void); diff --git a/nx/source/runtime/env.c b/nx/source/runtime/env.c index 8917444a..5edae201 100644 --- a/nx/source/runtime/env.c +++ b/nx/source/runtime/env.c @@ -161,3 +161,7 @@ Result envSetNextLoad(const char* path, const char* argv) return 0; } + +bool envHasNextLoad(void) { + return g_nextLoadPath != NULL; +}