mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-25 12:06:58 +01:00
Don't init external storage when running in MIiMaker
This commit is contained in:
parent
8c132ccf9a
commit
fba70ac149
@ -5,6 +5,7 @@
|
||||
#include <coreinit/screen.h>
|
||||
#include <coreinit/filesystem.h>
|
||||
#include <coreinit/memdefaultheap.h>
|
||||
#include <coreinit/title.h>
|
||||
#include <vpad/input.h>
|
||||
#include <sysapp/launch.h>
|
||||
#include <sysapp/title.h>
|
||||
@ -167,6 +168,12 @@ bool getQuickBoot() {
|
||||
}
|
||||
|
||||
static void initExternalStorage() {
|
||||
if (OSGetTitleID() == _SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_MII_MAKER)) {
|
||||
// nn::spm functions always call OSFatal when they fail, so we make sure have permission to use
|
||||
// the lib before actually using it.
|
||||
return;
|
||||
}
|
||||
|
||||
nn::spm::Initialize();
|
||||
|
||||
nn::spm::StorageListItem items[0x20];
|
||||
|
Loading…
Reference in New Issue
Block a user