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.
This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-22 09:31:40 -05:00
1 parent 1f70d43fe2
commit 501debc7f6
3 files changed
+24

No files matched your search

@@ -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_"):
+12
View File
@@ -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"