diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env index 5dd574abd..b4b574a0a 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env @@ -194,6 +194,12 @@ def protonfixes_off(game): return {"PROTONFIXES_DISABLE": "1"}, [], "umu-protonfixes off (its ALSA audio and VC++ installer steps fail here)" +@fix +def black_ops_ii_steam_exec(game): + if game.app_id in ("202970", "202990", "212910") or game.stem in ("t6sp", "t6mp", "t6zm"): + return {"WINESTEAMNOEXEC": "0"}, [], "Black Ops II: Steam exec handling on (the game does not start without it)" + + @fix def little_nightmares_threads(game): if game.stem == "littlenightmares": diff --git a/tools/tests/test_game_environment.py b/tools/tests/test_game_environment.py index 898bd3a22..41f05beb8 100644 --- a/tools/tests/test_game_environment.py +++ b/tools/tests/test_game_environment.py @@ -1615,6 +1615,14 @@ class GameEnvironmentTest(unittest.TestCase): self.assertTrue(notes) self.assertEqual(MODULE["engine_fixes"]("/game/Game/DarkSoulsII.exe", []), ({}, [], [])) + def test_black_ops_ii_starts_with_steam_exec_handling(self): + for exe in ("/game/Call of Duty Black Ops II/t6zm.exe", "/game/Call of Duty Black Ops II/t6mp.exe", "/game/Call of Duty Black Ops II/t6sp.exe"): + env, extra, notes = MODULE["engine_fixes"](exe, []) + self.assertEqual((env, extra), ({"WINESTEAMNOEXEC": "0"}, [])) + self.assertTrue(notes) + self.assertEqual(MODULE["engine_fixes"]("/game/Game/Other.exe", [], "202990")[0], {"WINESTEAMNOEXEC": "0"}) + self.assertEqual(MODULE["engine_fixes"]("/game/Game/Other.exe", []), ({}, [], [])) + def test_little_nightmares_keeps_its_render_thread(self): env, extra, notes = MODULE["engine_fixes"]("/game/Little Nightmares/Atlas/Binaries/Win64/LittleNightmares.exe", []) self.assertEqual((env, extra), ({"PROTONFIXES_DISABLE": "1"}, []))