mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-24 19:27:27 +00:00
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:
parent
5e5887a378
commit
190e71a318
8 changed files with 35 additions and 595 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue