From 21a8f3f37825fcbfb156b90c2deb5267a08a8bcd Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 1 Jan 2021 20:00:50 +0100 Subject: [PATCH] Fix doProcUi check when there are more than one arg --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d60950f..4e13548 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -78,7 +78,7 @@ extern "C" int _start(int argc, char **argv) { // If we load from our CustomRPXLoader the argv is set with "safe.rpx" // in this case we don't want to do any ProcUi stuff on error, only on success - bool doProcUI = (argc != 1 || std::string(argv[0]) != "safe.rpx"); + bool doProcUI = (argc >= 1 && std::string(argv[0]) != "safe.rpx"); uint64_t *cfwLaunchedWithPtr = (uint64_t *) 0x00FFFFF8; *cfwLaunchedWithPtr = OSGetTitleID();