mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
upscale: refresh staged bridge DLLs at session start
ensure() returns at once when the data files and DLLs exist, so the refresh added in aabacc10 never
ran (Red Magic 12 Pro: no stamp written, old 09:15 DLLs kept). prepare() runs on the session-start
thread before the game copies the DLLs; it now calls stageBridges(), which returns at once when the
stamp matches the pack or local copy.
This commit is contained in:
1 parent
aa4997b306
commit
0750f2d0f5
1 file changed
+3
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user