mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-26 14:45:48 +03:00
proton: Dump header with proton version info in logs
This commit is contained in:
parent
cb93dcdd7d
commit
1b0173de22
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…
Reference in New Issue
Block a user