From 501debc7f6e6ef6d5d5a644f362856cc9c535641 Mon Sep 17 00:00:00 2001 From: MaxsTechReview Date: Sun, 22 Nov 2026 09:31:40 -0500 Subject: [PATCH] fix(game-env): Dragon's Dogma 2 starts with its Wine detection off (#3011) Dragon's Dogma 2 checks for Wine and takes a path that does not start. Launches of Steam app 2054970 now append the game's own /WineDetectionEnabled:False switch at launch time. Steam's stored Launch Options are untouched, and a /WineDetectionEnabled: value the user already passes keeps priority and is not repeated. --- docs/development/game-environment.md | 6 ++++++ .../linuxfs/overlay/usr/local/bin/droiddeck-game-env | 6 ++++++ tools/tests/test_game_environment.py | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/docs/development/game-environment.md b/docs/development/game-environment.md index ac7be74c6..8d366151e 100644 --- a/docs/development/game-environment.md +++ b/docs/development/game-environment.md @@ -293,6 +293,12 @@ configuration falls back to the inherited environment without evaluating its contents. Both component and environment selection normalize signed non-Steam prefix IDs to unsigned IDs. +A Dragon's Dogma 2 launch (Steam app 2054970) appends the game's own +`/WineDetectionEnabled:False` switch: the game checks for Wine and its Wine path +does not start. The switch is added only at launch, never to Steam's stored +Launch Options, and a user's own `/WineDetectionEnabled:` value in Launch +Options keeps priority and is not repeated. + The published file also carries generated `dxvkConfig` and `dxvkConfigGames` values the app's own file never has. The session menu's texture filtering (`core/TextureFiltering`) becomes `d3d9/d3d11.samplerAnisotropy` and diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env index b4b574a0a..a465a9385 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env @@ -152,6 +152,12 @@ def deep_rock_gdk_raytracing(game): return {}, ["-noraytracing", "-ini:Engine:[/Script/Engine.RendererSettings]:r.RayTracing=False"], "Deep Rock Galactic GDK: ray tracing off (D3D12 pipeline creation fails on Thor)" +@fix +def dragons_dogma_2_wine_detection(game): + if game.app_id == "2054970" and not any(a.lower().startswith("/winedetectionenabled:") for a in game.args): + return {}, ["/WineDetectionEnabled:False"], "Dragon's Dogma 2: the game's Wine detection off (its Wine path does not start)" + + @fix def ff7_rebirth_feature_level(game): if game.stem in ("ff7rebirth", "ff7rebirth_"): diff --git a/tools/tests/test_game_environment.py b/tools/tests/test_game_environment.py index 41f05beb8..e2a6d8538 100644 --- a/tools/tests/test_game_environment.py +++ b/tools/tests/test_game_environment.py @@ -1536,6 +1536,18 @@ class GameEnvironmentTest(unittest.TestCase): self.assertEqual(MODULE["engine_fixes"]("/game/FSD-Win64-Shipping.exe", []), ({}, [], [])) self.assertEqual(MODULE["engine_fixes"]("/game/Other-WinGDK-Shipping.exe", []), ({}, [], [])) + def test_dragons_dogma_2_turns_its_wine_detection_off_unless_the_user_sets_it(self): + game = "/game/Dragons Dogma 2/DD2.exe" + env, extra, notes = MODULE["engine_fixes"](game, [], "2054970") + self.assertEqual(extra, ["/WineDetectionEnabled:False"]) + self.assertEqual(env, {}) + self.assertTrue(notes) + self.assertEqual(MODULE["engine_fixes"](game, ["-dx12"], "2054970")[1], ["/WineDetectionEnabled:False"]) + for own in ("/WineDetectionEnabled:False", "/WineDetectionEnabled:True", "/winedetectionenabled:false"): + self.assertEqual(MODULE["engine_fixes"](game, [own], "2054970"), ({}, [], [])) + self.assertEqual(MODULE["engine_fixes"](game, [], "42"), ({}, [], [])) + self.assertEqual(MODULE["engine_fixes"](game, []), ({}, [], [])) + def test_arkham_city_gets_full_x87_precision_over_the_preset(self): with tempfile.TemporaryDirectory() as tmp: city = Path(tmp) / "Batman Arkham City GOTY/Binaries/Win32"