mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-26 00:06:02 +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
|
@fix
|
||||||
def ff7_rebirth_feature_level(game):
|
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)"
|
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):
|
def test_ff7_rebirth_runs_at_feature_level_12_2_unless_the_game_overrides_it(self):
|
||||||
with tempfile.TemporaryDirectory() as tmp:
|
with tempfile.TemporaryDirectory() as tmp:
|
||||||
root = Path(tmp) / "FFVII Rebirth"
|
root = Path(tmp) / "FINAL FANTASY VII REBIRTH"
|
||||||
shipping = root / "ff7rebirth_/Binaries/Win64/ff7rebirth_-Win64-Shipping.exe"
|
game = root / "End/Binaries/Win64/ff7rebirth_.exe"
|
||||||
shipping.parent.mkdir(parents=True)
|
game.parent.mkdir(parents=True)
|
||||||
for exe in (root / "ff7rebirth_.exe", shipping):
|
for exe in (root / "ff7rebirth.exe", game):
|
||||||
exe.touch()
|
exe.touch()
|
||||||
env, extra, notes = MODULE["engine_fixes"](str(exe), [])
|
env, extra, notes = MODULE["engine_fixes"](str(exe), [])
|
||||||
self.assertEqual(env, {"VKD3D_FEATURE_LEVEL": "12_2"}, exe.name)
|
self.assertEqual(env, {"VKD3D_FEATURE_LEVEL": "12_2"}, exe.name)
|
||||||
|
|||||||
Reference in new issue
Block a user