From cd881bbc0e3c72d54f5c9382cfa0026c942d9776 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sat, 20 Jan 2018 18:25:35 -0500 Subject: [PATCH] Added envHasNextLoad(). --- nx/include/switch/runtime/env.h | 1 + nx/source/runtime/env.c | 4 ++++ 2 files changed, 5 insertions(+) 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; +}