diff options
| author | JosJuice <josjuice@gmail.com> | 2019-02-23 17:49:06 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2019-02-25 19:54:25 +0100 |
| commit | 8842a0f402ffe60a80ce7894bfd36afd039009fc (patch) | |
| tree | 63b17123d1238eeca41754711dd186a3c48689cc /Source/Android/jni/GameList/GameFile.cpp | |
| parent | d27036eb77a7cde0beea1760773dfd046dd2ca10 (diff) | |
Keep track of GameTDB ID separately from game ID
The difference between Dolphin's game IDs and GameTDB's game IDs
is that GameTDB uses four characters for non-disc titles, whereas
Dolphin uses six characters for all titles.
This fixes:
- TitleDatabase considering Datel discs to be NHL Hitz 2002
- Gecko code downloading not working for discs with IDs starting with P
- Cover downloading mixing up discs with channels (e.g. Mario Kart Wii
and Mario Kart Channel) and making extra HTTP requests. (Android was
actually doing a better job at this than DolphinQt!)
Diffstat (limited to 'Source/Android/jni/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Android/jni/GameList/GameFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Android/jni/GameList/GameFile.cpp b/Source/Android/jni/GameList/GameFile.cpp index b84426a1ca..ee889709fd 100644 --- a/Source/Android/jni/GameList/GameFile.cpp +++ b/Source/Android/jni/GameList/GameFile.cpp @@ -123,6 +123,12 @@ JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getGameI return ToJString(env, GetRef(env, obj)->GetGameID());
}
+JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getGameTdbId(JNIEnv* env,
+ jobject obj)
+{
+ return ToJString(env, GetRef(env, obj)->GetGameTDBID());
+}
+
JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_model_GameFile_getDiscNumber(JNIEnv* env,
jobject obj)
{
|
