From 190e71a3188d1ade2a158c8aa0ec737b6929f5a8 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 2 Sep 2023 12:44:26 +0200 Subject: Android: Use JNI for setting/getting ISO paths This gets rid of the last Android-specific code that directly interfaces with INI files. --- Source/Android/jni/GameList/GameFileCache.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Source/Android/jni/GameList/GameFileCache.cpp') 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 +#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) { -- cgit v1.2.3