mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Use getCacheDir if getExternalCacheDir returns null.
This commit is contained in:
parent
4e4705e983
commit
cff7a4bfd2
3 changed files with 15 additions and 2 deletions
|
@ -400,6 +400,12 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SetCacheDire
|
|||
File::SetUserPath(D_CACHE_IDX, GetJString(env, jDirectory));
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_NativeLibrary_GetCacheDirectory(JNIEnv* env, jclass)
|
||||
{
|
||||
return ToJString(env, File::GetUserPath(D_CACHE_IDX));
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_DefaultCPUCore(JNIEnv*, jclass)
|
||||
{
|
||||
return static_cast<jint>(PowerPC::DefaultCPUCore());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue