Fix doProcUi check when there are more than one arg

This commit is contained in:
Maschell 2021-01-01 20:00:50 +01:00
parent 1d91016696
commit 21a8f3f378

View File

@ -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();