mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 22:36:00 +00:00
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:
1 parent
1f70d43fe2
commit
501debc7f6
3 files changed
+24
No files matched your search
@@ -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
|
||||
|
||||
@@ -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_"):
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user