mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 02:51:10 +00:00
fix: match FF7 Rebirth by its real executables
This commit is contained in:
1 parent
d08a5e6a73
commit
66cf094fc2
2 files changed
+5
-5
No files matched your search
@@ -125,7 +125,7 @@ def deep_rock_gdk_raytracing(game):
|
||||
|
||||
@fix
|
||||
def ff7_rebirth_feature_level(game):
|
||||
if "ff7rebirth_.exe" in game.files or game.stem in ("ff7rebirth_", "ff7rebirth_-win64-shipping"):
|
||||
if game.stem in ("ff7rebirth", "ff7rebirth_"):
|
||||
return {"VKD3D_FEATURE_LEVEL": "12_2"}, [], "Final Fantasy VII Rebirth: D3D12 feature level 12_2 (the device-reported level fails its DX12 check)"
|
||||
|
||||
|
||||
|
||||
@@ -1417,10 +1417,10 @@ class GameEnvironmentTest(unittest.TestCase):
|
||||
|
||||
def test_ff7_rebirth_runs_at_feature_level_12_2_unless_the_game_overrides_it(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
root = Path(tmp) / "FFVII Rebirth"
|
||||
shipping = root / "ff7rebirth_/Binaries/Win64/ff7rebirth_-Win64-Shipping.exe"
|
||||
shipping.parent.mkdir(parents=True)
|
||||
for exe in (root / "ff7rebirth_.exe", shipping):
|
||||
root = Path(tmp) / "FINAL FANTASY VII REBIRTH"
|
||||
game = root / "End/Binaries/Win64/ff7rebirth_.exe"
|
||||
game.parent.mkdir(parents=True)
|
||||
for exe in (root / "ff7rebirth.exe", game):
|
||||
exe.touch()
|
||||
env, extra, notes = MODULE["engine_fixes"](str(exe), [])
|
||||
self.assertEqual(env, {"VKD3D_FEATURE_LEVEL": "12_2"}, exe.name)
|
||||
|
||||
Reference in new issue
Block a user