mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
fix(game-env): restore D3D12 12_2 and shader model 6_9 for Kingdom Come: Deliverance II (#2787)
* fix(game-env): run Kingdom Come: Deliverance II at D3D12 feature level 12_0 * fix(game-env): restore feature level 12_2 and shader model 6_9 for Kingdom Come: Deliverance II
This commit is contained in:
1 parent
f0f7f7a116
commit
5b7409d1d5
2 files changed
+23
-4
No files matched your search
@@ -86,9 +86,10 @@ def game_files(exe):
|
||||
|
||||
class Game:
|
||||
|
||||
def __init__(self, exe, args):
|
||||
def __init__(self, exe, args, app_id=""):
|
||||
self.exe = exe
|
||||
self.args = args
|
||||
self.app_id = app_id
|
||||
self.stem = os.path.splitext(os.path.basename(exe))[0].lower()
|
||||
self.files = game_files(exe)
|
||||
|
||||
@@ -158,6 +159,12 @@ def ff7_rebirth_feature_level(game):
|
||||
return {"VKD3D_FEATURE_LEVEL": "12_2"}, [], "Final Fantasy VII Rebirth: D3D12 feature level 12_2 (the device-reported level fails its DX12 check)"
|
||||
|
||||
|
||||
@fix
|
||||
def kcd2_feature_level(game):
|
||||
if game.app_id == "1771300":
|
||||
return {"VKD3D_FEATURE_LEVEL": "12_2", "VKD3D_SHADER_MODEL": "6_9"}, [], "Kingdom Come: Deliverance II: D3D12 feature level 12_2 and shader model 6_9 (the detected level fails its startup check, and 12_0 alone stalls on the splash screen)"
|
||||
|
||||
|
||||
@fix
|
||||
def arkham_city_x87(game):
|
||||
if "batmanac.exe" in game.files:
|
||||
@@ -367,8 +374,8 @@ def offline_without_anticheat(command, env):
|
||||
return command[:2] + [game] + command[3:]
|
||||
|
||||
|
||||
def engine_fixes(exe, args):
|
||||
game = Game(exe, args)
|
||||
def engine_fixes(exe, args, app_id=""):
|
||||
game = Game(exe, args, app_id)
|
||||
env, extra, notes = {}, [], []
|
||||
for check in FIXES:
|
||||
found = check(game)
|
||||
@@ -1405,7 +1412,7 @@ def main():
|
||||
death_stranding_allocator(app_id, command[2])
|
||||
ubisoft_overlay_off(env)
|
||||
project_zomboid_jvm(command)
|
||||
fixes, extra, notes = engine_fixes(command[2], command[3:]) if len(command) > 2 else ({}, [], [])
|
||||
fixes, extra, notes = engine_fixes(command[2], command[3:], app_id) if len(command) > 2 else ({}, [], [])
|
||||
if not gl_default:
|
||||
fixes.pop("vblank_mode", None)
|
||||
for note in notes:
|
||||
|
||||
Reference in new issue
Block a user