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).
This commit is contained in:
1 parent
e2c5a2d37f
commit
4453a46382
3 files changed
+16
-2
No files matched your search
@@ -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()) } ||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user