mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-22 09:59:17 +01:00
Fix doProcUi check when there are more than one arg
This commit is contained in:
parent
1d91016696
commit
21a8f3f378
@ -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"
|
// 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
|
// 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;
|
uint64_t *cfwLaunchedWithPtr = (uint64_t *) 0x00FFFFF8;
|
||||||
*cfwLaunchedWithPtr = OSGetTitleID();
|
*cfwLaunchedWithPtr = OSGetTitleID();
|
||||||
|
Loading…
Reference in New Issue
Block a user