From d304d75aa5e2026a6649ae3359aa66eec43b9a02 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 8 Jun 2021 18:09:22 +0200 Subject: Android: Stop using custom path for GameFileCache Back when I wrote this code, I believe I set it to use a custom path so that the cache would end up in a directory which Android considers to be a cache directory. But nowadays the directory which Dolphin's C++ code considers to be the cache directory is such a directory, so there's no longer any reason to override the default path. --- .../main/java/org/dolphinemu/dolphinemu/model/GameFileCache.java | 6 +++--- .../org/dolphinemu/dolphinemu/services/GameFileCacheService.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Android/app/src/main/java') diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFileCache.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFileCache.java index cca12267b2..7597b437d5 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFileCache.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/model/GameFileCache.java @@ -17,12 +17,12 @@ public class GameFileCache @Keep private long mPointer; - public GameFileCache(String path) + public GameFileCache() { - mPointer = newGameFileCache(path); + mPointer = newGameFileCache(); } - private static native long newGameFileCache(String path); + private static native long newGameFileCache(); @Override public native void finalize(); diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheService.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheService.java index 6d3ee84e52..89e1a0896b 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheService.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheService.java @@ -172,7 +172,7 @@ public final class GameFileCacheService extends IntentService // Load the game list cache if it isn't already loaded, otherwise do nothing if (ACTION_LOAD.equals(intent.getAction()) && gameFileCache == null) { - GameFileCache temp = new GameFileCache(getCacheDir() + File.separator + "gamelist.cache"); + GameFileCache temp = new GameFileCache(); synchronized (temp) { gameFileCache = temp; -- cgit v1.2.3