diff options
| author | Léo Lam <leo@leolam.fr> | 2020-04-27 15:15:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 15:15:39 +0200 |
| commit | b175e9e6ac1389e93411ad953a8c4d8aa8f18e31 (patch) | |
| tree | 02736aed43a75788f1b52151d627f2df21e75c1c /Source/Android/jni/MainAndroid.cpp | |
| parent | 75e79ece73afaf86c45f83f382e97f7983288467 (diff) | |
| parent | c5c080b235bec64afe1379290ae538a532aaae95 (diff) | |
Merge pull request #8748 from Ebola16/WAD
Android: Add Install WAD to menu_game_grid
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 122f3fd6d9..adcba61345 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -43,6 +43,7 @@ #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/Profiler.h" #include "Core/State.h" +#include "Core/WiiUtils.h" #include "DiscIO/Enums.h" #include "DiscIO/Volume.h" @@ -733,6 +734,14 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_ChangeDisc(J Core::RunAsCPUThread([&path] { DVDInterface::ChangeDisc(path); }); } +JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_InstallWAD(JNIEnv* env, + jobject obj, + jstring jFile) +{ + const std::string path = GetJString(env, jFile); + return static_cast<jboolean>(WiiUtils::InstallWAD(path)); +} + #ifdef __cplusplus } #endif |
