diff options
| author | Tilka <tilkax@gmail.com> | 2019-02-26 04:25:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-26 04:25:45 +0000 |
| commit | 19f4772e4772a199ec58e03df23e6e0e8bf003b9 (patch) | |
| tree | d7f103ae74f68a0d2377ebbf1f2aa1b18594d91e /Source/Android/app/src/main/java | |
| parent | 02f5a7505fe8bb9c657cd5cb2b72c82e5b018da8 (diff) | |
| parent | 71e6243c54c7a66f8216533fecfbf0fa69cabaca (diff) | |
Merge pull request #7816 from JosJuice/titledatabase-edge-cases
Fix edge cases in TitleDatabase, cover downloading, Gecko code downloading
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFile.java | 4 | ||||
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/CoverHelper.java | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFile.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFile.java index 45d0eb9060..5a247137ab 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFile.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFile.java @@ -30,6 +30,8 @@ public class GameFile public native String getGameId(); + public native String getGameTdbId(); + public native int getDiscNumber(); public native int getRevision(); @@ -43,7 +45,7 @@ public class GameFile public String getCoverPath() { return Environment.getExternalStorageDirectory().getPath() + - "/dolphin-emu/Cache/GameCovers/" + getGameId() + ".png"; + "/dolphin-emu/Cache/GameCovers/" + getGameTdbId() + ".png"; } public String getCustomCoverPath() diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/CoverHelper.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/CoverHelper.java index a6184e8681..2c0cd393a0 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/CoverHelper.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/CoverHelper.java @@ -12,10 +12,7 @@ public final class CoverHelper public static String buildGameTDBUrl(GameFile game, String region) { - String gameId = game.getGameId(); - if (game.getPlatform() == 2) // WiiWare - gameId = gameId.substring(0, 4); - return String.format(baseUrl, region, gameId); + return String.format(baseUrl, region, game.getGameTdbId()); } public static String getRegion(GameFile game) @@ -77,4 +74,4 @@ public final class CoverHelper // Do nothing } } -}
\ No newline at end of file +} |
