diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env index d430246a04..3f7154ba3d 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env @@ -134,6 +134,14 @@ def caravan_sandwitch_feature_level(game): return {"VKD3D_FEATURE_LEVEL": "12_1"}, [], "Caravan SandWitch: D3D12 feature level 12_1 (12_2 hands it mesh shader pipelines vkd3d-proton cannot build)" +@fix +def robocop_rogue_city_feature_level(game): + """vkd3d-proton turns mesh shaders off on Adreno, but 12_2 still advertises them, and UE5 then builds mesh + pipelines with no pipeline layout that crash Turnip on launch.""" + if "robocop.exe" in game.files or game.stem == "robocop-win64-shipping": + return {"VKD3D_FEATURE_LEVEL": "12_1"}, [], "RoboCop: Rogue City: D3D12 feature level 12_1" + + @fix def cyberpunk_feature_level(game): if game.stem == "cyberpunk2077" or ( diff --git a/tools/tests/test_game_environment.py b/tools/tests/test_game_environment.py index 833c23a60f..56e5e651df 100644 --- a/tools/tests/test_game_environment.py +++ b/tools/tests/test_game_environment.py @@ -364,7 +364,7 @@ class GameEnvironmentTest(unittest.TestCase): self.assertTrue(notes) self.assertEqual(MODULE["engine_fixes"]("/game/Game/DarkSoulsII.exe", []), ({}, [], [])) - def test_caravan_sandwitch_and_cyberpunk_run_at_feature_level_12_1(self): + def test_caravan_sandwitch_robocop_and_cyberpunk_run_at_feature_level_12_1(self): with tempfile.TemporaryDirectory() as tmp: caravan = Path(tmp) / "Caravan SandWitch" shipping = caravan / "CaravanSandWitch/Binaries/Win64" @@ -376,8 +376,13 @@ class GameEnvironmentTest(unittest.TestCase): (cyberpunk / "bin/x64").mkdir(parents=True) for name in ("REDprelauncher.exe", "bin/x64/Cyberpunk2077.exe"): (cyberpunk / name).touch() + robocop = Path(tmp) / "RoboCop Rogue City" + (robocop / "RoboCop/Binaries/Win64").mkdir(parents=True) + for name in ("RoboCop.exe", "RoboCop/Binaries/Win64/RoboCop-Win64-Shipping.exe"): + (robocop / name).touch() games = [caravan / "CaravanSandWitch.exe", caravan / ".droiddeck-launch.bat", shipping / "CaravanSandWitch-Win64-Shipping.exe", + robocop / "RoboCop.exe", robocop / "RoboCop/Binaries/Win64/RoboCop-Win64-Shipping.exe", cyberpunk / "REDprelauncher.exe", cyberpunk / "bin/x64/Cyberpunk2077.exe"] for exe in games: env, extra, notes = MODULE["engine_fixes"](str(exe), [])