From 4453a4638267170a1d12fd422a316b41ec1a9206 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Mon, 16 Nov 2026 23:49:09 -0500 Subject: [PATCH] fix(bionic): FEX packages never reach DroidDeck-Bionic A game's own FEX choice (per-game profile) was published for every installed Proton, and the launch-time check re-applied it into DroidDeck-Bionic: DroidDeck's FEX packages carry glibc unix libraries, which bionic Wine cannot load, so FEX ran without its unix side (seen with DiRT Showdown: DD-FEXCore-2611+49-nightly's 14 KB glibc libwow64fex.so replaced the tool's Android build at its first launch). - ComponentsManager: no FEX rows (selected, original or per-game) for DroidDeck-Bionic folders; DXVK and VKD3D-Proton are still swapped. Test: a game's FEX choice reaches DroidDeck-Proton but not DroidDeck-Bionic. - steam-compatibility: the launch-time check skips FEX rows for DroidDeck-Bionic (selections published by an older app). --- .../com/droiddeck/launcher/session/ComponentsManager.kt | 7 +++++-- .../launcher/session/ComponentsRepublishTest.kt | 9 +++++++++ tools/linuxfs/overlay/usr/local/bin/steam-compatibility | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/session/ComponentsManager.kt b/app/src/main/java/com/droiddeck/launcher/session/ComponentsManager.kt index d26af99bab..972a5f8014 100644 --- a/app/src/main/java/com/droiddeck/launcher/session/ComponentsManager.kt +++ b/app/src/main/java/com/droiddeck/launcher/session/ComponentsManager.kt @@ -620,6 +620,7 @@ object ComponentsManager { } val active = state.sub("active") for (p in all) for (comp in COMPONENTS) { + if (comp == "fex" && !fexManaged(p)) continue val entry = active.optJSONObject(p.id)?.optJSONObject(comp) val selected = entry?.takeIf { it.optString("protonVersion") == p.version }?.let { choice(p, comp, it) } if (selected != null) append("*", p, comp, selected.first, selected.second) @@ -638,7 +639,7 @@ object ComponentsManager { val wcp = File(packagesDir(context), file) if (!wcp.isFile) continue val key = safeName(file.removeSuffix(".wcp")) - for (p in all) append(scope, p, comp, key, wcp) + for (p in all) if (comp != "fex" || fexManaged(p)) append(scope, p, comp, key, wcp) } } return PreparedLaunchState(lines.toString(), keep) @@ -1127,8 +1128,10 @@ object ComponentsManager { } // DroidDeck-Bionic carries Android-built FEX unix libraries; the FEX packages here are glibc builds. + private fun fexManaged(p: Proton): Boolean = !p.dir.name.startsWith("DroidDeck-Bionic") + fun supports(p: Proton, comp: String): Boolean = - if (comp == "fex") File(p.dir, FEX_FILES.first()).isFile && !p.dir.name.startsWith("DroidDeck-Bionic") else File(p.dir, "${COMP_DIR.getValue(comp)}/aarch64-windows").isDirectory + if (comp == "fex") File(p.dir, FEX_FILES.first()).isFile && fexManaged(p) else File(p.dir, "${COMP_DIR.getValue(comp)}/aarch64-windows").isDirectory fun hardwareDxvk(context: Context): Boolean = runtimeManaged(context, "dxvk") || FORCED_PACKAGES.any { it.comp == "dxvk" && it.matches(GpuInfo.detect()) } || diff --git a/app/src/test/java/com/droiddeck/launcher/session/ComponentsRepublishTest.kt b/app/src/test/java/com/droiddeck/launcher/session/ComponentsRepublishTest.kt index 74978ee30c..dfeb145c2f 100644 --- a/app/src/test/java/com/droiddeck/launcher/session/ComponentsRepublishTest.kt +++ b/app/src/test/java/com/droiddeck/launcher/session/ComponentsRepublishTest.kt @@ -48,6 +48,15 @@ class ComponentsRepublishTest { assertEquals(fex, ComponentsManager.gameComponents(context, scope)["fex"]) } + @Test fun aGameFexChoiceSkipsDroidDeckBionic() { + proton("DroidDeck-Proton 11-12.8", "DroidDeck-Proton-11-12.8") + proton("DroidDeck-Bionic-12.8-r6", "DroidDeck-Bionic-12.8-r6") + packageFile() + ComponentsManager.setGameComponent(context, scope, "fex", fex) + assertEquals(setOf("DroidDeck-Proton 11-12.8"), scopedTools()) + assertTrue(rows().none { it[1] == "DroidDeck-Bionic-12.8-r6" && it[3] == "fex" }) + } + @Test fun nothingIsRewrittenWhileTheToolsAreUnchanged() { proton("DroidDeck-Proton 11-11.8", "DroidDeck-Proton-11-11.8") packageFile() diff --git a/tools/linuxfs/overlay/usr/local/bin/steam-compatibility b/tools/linuxfs/overlay/usr/local/bin/steam-compatibility index cf616c86fc..4b0f602d1c 100755 --- a/tools/linuxfs/overlay/usr/local/bin/steam-compatibility +++ b/tools/linuxfs/overlay/usr/local/bin/steam-compatibility @@ -186,6 +186,8 @@ bl_components() { # The selected system PowerVR runtime supplies DXVK at launch. Keep saved selections # for a later manual-driver session without rewriting this Proton's bundled files now. [ "$comp" = dxvk ] && [ -n "${DROIDDECK_POWERVR_RUNTIME:-}" ] && continue + # DroidDeck-Bionic carries Android-built FEX unix libraries; FEX packages are glibc builds. + [ "$comp" = fex ] && [[ "$cm_tool" == DroidDeck-Bionic* ]] && continue cm_rows+=("$comp"$'\\t'"$rel"$'\\t'"$sum"$'\\t'"$src") [ "$src" != "-" ] && [ -f "$base/$rel" ] && cm_files+=("$base/$rel") done <<< "$cm_selected"