mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-11-14 12:15:11 +01:00
Avoid WUMS loading when we just did a iosu reload
This commit is contained in:
parent
af367030b7
commit
ea08593967
@ -78,7 +78,17 @@ void SaveLoadedRPLsInGlobalInformation(module_information_t *globalInformation,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" uint32_t OSGetBootPMFlags(void);
|
||||||
|
|
||||||
void doStart(int argc, char **argv) {
|
void doStart(int argc, char **argv) {
|
||||||
|
uint32_t bootFlags = OSGetBootPMFlags();
|
||||||
|
/*
|
||||||
|
* Bit 13 - OS relaunch (OSForceFullRelaunch()).
|
||||||
|
See more https://wiiubrew.org/wiki/Boot1#PowerFlags */
|
||||||
|
if ((bootFlags & 0x00002000) != 0 && argc == WUMS_LOADER_SETUP_MAGIC_WORD) {
|
||||||
|
OSReport("OSForceFullRelaunch detected, skipping WUMS\n", bootFlags);
|
||||||
|
return;
|
||||||
|
}
|
||||||
init_wut();
|
init_wut();
|
||||||
initLogging();
|
initLogging();
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ IMPORT(__os_snprintf);
|
|||||||
IMPORT(MEMCheckHeap);
|
IMPORT(MEMCheckHeap);
|
||||||
IMPORT(MEMGetBaseHeapHandle);
|
IMPORT(MEMGetBaseHeapHandle);
|
||||||
IMPORT(MEMCheckExpHeap);
|
IMPORT(MEMCheckExpHeap);
|
||||||
|
IMPORT(OSGetBootPMFlags);
|
||||||
|
|
||||||
IMPORT(FSTimeToCalendarTime);
|
IMPORT(FSTimeToCalendarTime);
|
||||||
IMPORT(FSInit);
|
IMPORT(FSInit);
|
||||||
|
Loading…
Reference in New Issue
Block a user