summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java/org
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-03-15 22:12:39 +0100
committerJosJuice <josjuice@gmail.com>2023-12-07 21:09:17 +0100
commit4203632c93f4b73c8fd1159272f08ca022063b2b (patch)
tree10afe8764dc3ad78546d47d6151ece66438f75c4 /Source/Android/app/src/main/java/org
parent3e7a16f225df1baf94f643e70e6a7ea91dd7ac7a (diff)
Android: Improve GameFileCacheManager comments
Diffstat (limited to 'Source/Android/app/src/main/java/org')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.java
index 4c77cfdbc2..02b8b15b9f 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.java
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.java
@@ -160,8 +160,8 @@ public final class GameFileCacheManager
public static GameFile addOrGet(String gamePath)
{
- // Common case: The game is in the cache, so just grab it from there.
- // (Actually, addOrGet already checks for this case, but we want to avoid calling it if possible
+ // Common case: The game is in the cache, so just grab it from there. (GameFileCache.addOrGet
+ // actually already checks for this case, but we want to avoid calling it if possible
// because the executor thread may hold a lock on sGameFileCache for extended periods of time.)
GameFile[] allGames = sGameFiles.getValue();
for (GameFile game : allGames)
@@ -198,6 +198,8 @@ public final class GameFileCacheManager
if (sRunRescanAfterLoad)
{
+ // Without this, there will be a short blip where the loading indicator in the GUI disappears
+ // because neither sLoadInProgress nor sRescanInProgress is true
sRescanInProgress.postValue(true);
}