From 59f27ae4e1713d922fe71fc6ba95fbc399aac814 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 13 Aug 2019 18:01:27 +0200 Subject: GameFile: Support HBC-style XML metadata This feature was originally exclusive to the previous iteration of DolphinQt (the one that was the reason for the current iteration being named DolphinQt2 initially). https://bugs.dolphin-emu.org/issues/8949 --- Source/Android/jni/GameList/GameFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Android') diff --git a/Source/Android/jni/GameList/GameFile.cpp b/Source/Android/jni/GameList/GameFile.cpp index b9f7a28df4..b43f7b4402 100644 --- a/Source/Android/jni/GameList/GameFile.cpp +++ b/Source/Android/jni/GameList/GameFile.cpp @@ -84,13 +84,13 @@ JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getPlatform JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getTitle(JNIEnv* env, jobject obj) { - return ToJString(env, GetRef(env, obj)->GetName()); + return ToJString(env, GetRef(env, obj)->GetName(true)); } JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getDescription(JNIEnv* env, jobject obj) { - return ToJString(env, GetRef(env, obj)->GetDescription()); + return ToJString(env, GetRef(env, obj)->GetDescription(true)); } JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getCompany(JNIEnv* env, -- cgit v1.2.3 From d8958fbdf7fa123d61c453989483b7116727d4be Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 25 Sep 2019 11:36:45 +0200 Subject: GameFile: Use enums for custom/length parameters --- Source/Android/jni/GameList/GameFile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Android') diff --git a/Source/Android/jni/GameList/GameFile.cpp b/Source/Android/jni/GameList/GameFile.cpp index b43f7b4402..419a4694a5 100644 --- a/Source/Android/jni/GameList/GameFile.cpp +++ b/Source/Android/jni/GameList/GameFile.cpp @@ -84,13 +84,15 @@ JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getPlatform JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getTitle(JNIEnv* env, jobject obj) { - return ToJString(env, GetRef(env, obj)->GetName(true)); + return ToJString(env, + GetRef(env, obj)->GetName(UICommon::GameFile::Variant::LongAndPossiblyCustom)); } JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getDescription(JNIEnv* env, jobject obj) { - return ToJString(env, GetRef(env, obj)->GetDescription(true)); + return ToJString( + env, GetRef(env, obj)->GetDescription(UICommon::GameFile::Variant::LongAndPossiblyCustom)); } JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getCompany(JNIEnv* env, -- cgit v1.2.3