mirror of
https://github.com/gurrgur/er-patcher.git
synced 2026-06-13 09:47:54 +00:00
Add Linux Fullscreen Fix
This commit is contained in:
parent
98aa86767c
commit
07f1bf0dc2
1 changed files with 8 additions and 1 deletions
|
|
@ -166,6 +166,13 @@ if __name__ == "__main__":
|
||||||
# start patched exe directly to avoid EAC
|
# start patched exe directly to avoid EAC
|
||||||
steam_cmd = sys.argv[1 + sys.argv.index("--"):]
|
steam_cmd = sys.argv[1 + sys.argv.index("--"):]
|
||||||
steam_cmd[-1] = Path(steam_cmd[-1]).parent.absolute() / game_dir_patched / ("start_protected_game.exe" if patch.with_eac else patch.executable)
|
steam_cmd[-1] = Path(steam_cmd[-1]).parent.absolute() / game_dir_patched / ("start_protected_game.exe" if patch.with_eac else patch.executable)
|
||||||
|
|
||||||
|
# disable v-sync if running in fullscreen and on a unix based OS
|
||||||
|
if (patch.remove_60hz_fullscreen or patch.all) and os.name == 'posix':
|
||||||
|
my_env = os.environ.copy()
|
||||||
|
my_env["DXVK_CONFIG"] = "dxgi.syncInterval = 0"
|
||||||
|
subprocess.run(steam_cmd, cwd=steam_cmd[-1].parent.absolute(), env=my_env)
|
||||||
|
else:
|
||||||
subprocess.run(steam_cmd, cwd=steam_cmd[-1].parent.absolute())
|
subprocess.run(steam_cmd, cwd=steam_cmd[-1].parent.absolute())
|
||||||
|
|
||||||
# try to remove game_dir_patched
|
# try to remove game_dir_patched
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue