mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-11-14 04:05:08 +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) {
|
||||
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();
|
||||
initLogging();
|
||||
|
||||
|
@ -43,6 +43,7 @@ IMPORT(__os_snprintf);
|
||||
IMPORT(MEMCheckHeap);
|
||||
IMPORT(MEMGetBaseHeapHandle);
|
||||
IMPORT(MEMCheckExpHeap);
|
||||
IMPORT(OSGetBootPMFlags);
|
||||
|
||||
IMPORT(FSTimeToCalendarTime);
|
||||
IMPORT(FSInit);
|
||||
|
Loading…
Reference in New Issue
Block a user