diff --git a/app/src/main/java/com/droiddeck/launcher/session/UpscaleComponent.kt b/app/src/main/java/com/droiddeck/launcher/session/UpscaleComponent.kt index abc0608ab1..7bc5787677 100644 --- a/app/src/main/java/com/droiddeck/launcher/session/UpscaleComponent.kt +++ b/app/src/main/java/com/droiddeck/launcher/session/UpscaleComponent.kt @@ -414,6 +414,9 @@ object UpscaleComponent { val config = runCatching { GameEnvironmentStore.read(context) }.getOrNull() ?: return val choices = config.games.keys.mapNotNull { GameUpscaler.choice(config, it) } if (choices.isEmpty()) return + // Runs on the session-start thread, before the game copies the DLLs: ensure() returns at once when DLLs are + // staged, so a newer pack or local copy is staged here. + if (bridgesReady(context)) runCatching { stageBridges(context) }.onFailure { Log.w(TAG, "upscaler DLLs not refreshed", it) } val npu = npuArch() != null ensure(context, choices.flatMap { groups(it.engine, npu) }.toSet()) }