Skip to content
Permalink
Browse files

Android: Don't use GameFile/GameFileCache before UICommon::Init

Preparation for the next commit.
  • Loading branch information...
JosJuice committed Jun 16, 2019
1 parent 9f3f45a commit c677268aaf8002c11c1a1c55a0d2938de512401c
@@ -8,6 +8,7 @@
import org.dolphinemu.dolphinemu.model.GameFile;
import org.dolphinemu.dolphinemu.model.GameFileCache;
import org.dolphinemu.dolphinemu.ui.platform.Platform;
import org.dolphinemu.dolphinemu.utils.AfterDirectoryInitializationRunner;

import java.io.File;
import java.util.ArrayList;
@@ -94,7 +95,8 @@ private static void startService(Context context, String action)
*/
public static void startLoad(Context context)
{
startService(context, ACTION_LOAD);
new AfterDirectoryInitializationRunner().run(context,
() -> startService(context, ACTION_LOAD));
}

/**
@@ -104,7 +106,8 @@ public static void startLoad(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)

0 comments on commit c677268

Please sign in to comment.
You can’t perform that action at this time.