diff options
| author | JosJuice <josjuice@gmail.com> | 2023-09-02 12:44:26 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-09-02 12:58:20 +0200 |
| commit | 190e71a3188d1ade2a158c8aa0ec737b6929f5a8 (patch) | |
| tree | 269f76cf983bc1d59253fcef60f37403d0712619 /Source/Android/jni/GameList/GameFileCache.cpp | |
| parent | 5e5887a378db28324a8fc8825f21539525412e12 (diff) | |
Android: Use JNI for setting/getting ISO paths
This gets rid of the last Android-specific code that directly interfaces
with INI files.
Diffstat (limited to 'Source/Android/jni/GameList/GameFileCache.cpp')
| -rw-r--r-- | Source/Android/jni/GameList/GameFileCache.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Android/jni/GameList/GameFileCache.cpp b/Source/Android/jni/GameList/GameFileCache.cpp index 280de59bf9..27c3b0ef63 100644 --- a/Source/Android/jni/GameList/GameFileCache.cpp +++ b/Source/Android/jni/GameList/GameFileCache.cpp @@ -6,6 +6,7 @@ #include <jni.h> +#include "Core/Config/MainSettings.h" #include "UICommon/GameFileCache.h" #include "jni/AndroidCommon/AndroidCommon.h" #include "jni/AndroidCommon/IDCache.h" @@ -38,6 +39,18 @@ JNIEXPORT jobjectArray JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCach env, UICommon::FindAllGamePaths(JStringArrayToVector(env, folder_paths), recursive_scan)); } +JNIEXPORT jobjectArray JNICALL +Java_org_dolphinemu_dolphinemu_model_GameFileCache_getIsoPaths(JNIEnv* env, jclass) +{ + return VectorToJStringArray(env, Config::GetIsoPaths()); +} + +JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCache_setIsoPaths( + JNIEnv* env, jclass, jobjectArray paths) +{ + Config::SetIsoPaths(JStringArrayToVector(env, paths)); +} + JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFileCache_getSize(JNIEnv* env, jobject obj) { |
