mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
WiiUtils: Add function to check if system menu is installed
This commit is contained in:
parent
2fc7671eaf
commit
36257f7f42
@ -27,4 +27,6 @@ public final class WiiUtils
|
||||
public static native void importNANDBin(String file);
|
||||
|
||||
public static native int doOnlineUpdate(String region, WiiUpdateCallback callback);
|
||||
|
||||
public static native boolean isSystemMenuInstalled();
|
||||
}
|
||||
|
@ -9,7 +9,10 @@
|
||||
#include "jni/AndroidCommon/IDCache.h"
|
||||
|
||||
#include "Common/ScopeGuard.h"
|
||||
#include "Core/CommonTitles.h"
|
||||
#include "Core/HW/WiiSave.h"
|
||||
#include "Core/IOS/ES/ES.h"
|
||||
#include "Core/IOS/IOS.h"
|
||||
#include "Core/WiiUtils.h"
|
||||
#include "DiscIO/NANDImporter.h"
|
||||
|
||||
@ -128,4 +131,13 @@ JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_utils_WiiUtils_doOnlineUpd
|
||||
|
||||
return ConvertUpdateResult(result);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_utils_WiiUtils_isSystemMenuInstalled(JNIEnv* env, jclass)
|
||||
{
|
||||
IOS::HLE::Kernel ios;
|
||||
const auto tmd = ios.GetES()->FindInstalledTMD(Titles::SYSTEM_MENU);
|
||||
|
||||
return tmd.IsValid();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user