mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-03 13:14:29 +01:00
proton: Dump header with proton version info in logs
This commit is contained in:
parent
cb93dcdd7d
commit
1b0173de22
1 changed files with 7 additions and 0 deletions
7
proton
7
proton
|
|
@ -238,6 +238,13 @@ if "SteamGameId" in env:
|
|||
if os.path.exists(lfile_path):
|
||||
os.remove(lfile_path)
|
||||
lfile = open(lfile_path, "w+")
|
||||
lfile.write("======================\n")
|
||||
with open(basedir + "/version", "r") as f:
|
||||
lfile.write("Proton: " + f.readline().strip() + "\n")
|
||||
lfile.write("SteamGameId: " + env["SteamGameId"] + "\n")
|
||||
lfile.write("Command: " + str(sys.argv[2:]) + "\n")
|
||||
lfile.write("======================\n")
|
||||
lfile.flush()
|
||||
else:
|
||||
env["WINEDEBUG"] = "-all"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue