mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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.
This commit is contained in:
@ -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();
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user