mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 14:54:56 +00:00
Android: Don't use GameFile/GameFileCache before UICommon::Init
Preparation for the next commit.
This commit is contained in:
parent
9f3f45aa5f
commit
c677268aaf
1 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,7 @@ import android.support.v4.content.LocalBroadcastManager;
|
||||||
import org.dolphinemu.dolphinemu.model.GameFile;
|
import org.dolphinemu.dolphinemu.model.GameFile;
|
||||||
import org.dolphinemu.dolphinemu.model.GameFileCache;
|
import org.dolphinemu.dolphinemu.model.GameFileCache;
|
||||||
import org.dolphinemu.dolphinemu.ui.platform.Platform;
|
import org.dolphinemu.dolphinemu.ui.platform.Platform;
|
||||||
|
import org.dolphinemu.dolphinemu.utils.AfterDirectoryInitializationRunner;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -94,7 +95,8 @@ public final class GameFileCacheService extends IntentService
|
||||||
*/
|
*/
|
||||||
public static void startLoad(Context context)
|
public static void startLoad(Context context)
|
||||||
{
|
{
|
||||||
startService(context, ACTION_LOAD);
|
new AfterDirectoryInitializationRunner().run(context,
|
||||||
|
() -> startService(context, ACTION_LOAD));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -104,7 +106,8 @@ public final class GameFileCacheService extends IntentService
|
||||||
*/
|
*/
|
||||||
public static void startRescan(Context context)
|
public static void startRescan(Context context)
|
||||||
{
|
{
|
||||||
startService(context, ACTION_RESCAN);
|
new AfterDirectoryInitializationRunner().run(context,
|
||||||
|
() -> startService(context, ACTION_RESCAN));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GameFile addOrGet(String gamePath)
|
public static GameFile addOrGet(String gamePath)
|
||||||
|
|
Loading…
Add table
Reference in a new issue