fix(game-env): non-Adreno graphics logs no longer turn on Wine debug tracing (#2730)

* fix(game-env): non-Adreno graphics logs no longer turn on Wine debug tracing

* test(game-env): graphics-log tests use the session's DD_ variable names

---------

Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-11-25 11:26:24 -05:00
1 parent d38fd373f0
commit a8df9a7ae1
2 files changed
+52 -1

No files matched your search

@@ -1530,9 +1530,13 @@ def game_logs(command, env, app_id, now=None):
except OSError as error:
print("droiddeck-game-env: no game log folder (%s)" % error, file=sys.stderr)
return env
proton_log = env.get("PROTON_LOG", "")
asked = proton_log not in ("", "0")
result = dict(env)
if not asked:
result.setdefault("WINEDEBUG", "-all,err+all")
result.update({
"PROTON_LOG": "1",
"PROTON_LOG": proton_log if asked else "1",
"PROTON_LOG_DIR": str(folder),
"DXVK_LOG_PATH": str(folder),
"DXVK_LOG_LEVEL": env.get("DXVK_LOG_LEVEL", "info"),