Android: Use JNI for setting/getting ISO paths

This gets rid of the last Android-specific code that directly interfaces
with INI files.
This commit is contained in:
JosJuice
2023-09-02 12:44:26 +02:00
parent 5e5887a378
commit 190e71a318
8 changed files with 35 additions and 595 deletions

View File

@ -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)
{