mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Android: Support bypassing game file cache to parse file
This commit is contained in:
parent
a77b571da7
commit
6a6bbd7071
2 changed files with 13 additions and 0 deletions
|
@ -165,6 +165,17 @@ JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getBannerHe
|
|||
return static_cast<jint>(GetRef(env, obj)->GetBannerImage().height);
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_parse(JNIEnv* env,
|
||||
jobject obj,
|
||||
jstring path)
|
||||
{
|
||||
auto game_file = std::make_shared<UICommon::GameFile>(GetJString(env, path));
|
||||
if (!game_file->IsValid())
|
||||
game_file.reset();
|
||||
|
||||
return GameFileToJava(env, game_file);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue