Updated telemetry to support game dumps.
This commit is contained in:
@@ -53,6 +53,10 @@ WINETRICKS_CODEPAGE_PROBE = (
|
||||
)
|
||||
WINETRICKS_PROTON7_PROBE = 'winetricks_early_wine_arch cmd.exe /c "echo %$1%"'
|
||||
RUNTIME_DEFAULT_SYNC = "runtime-default"
|
||||
PROTON_DEBUG_ENVIRONMENT_VARIABLE = "PTLINUX_PROTON_DEBUG"
|
||||
PROTON_DEBUG_WINE_CHANNELS = (
|
||||
"+timestamp,+pid,+tid,+seh,+unwind,+debugstr,+loaddll,+mscoree"
|
||||
)
|
||||
CACHYOS_MARKER = "cachyos"
|
||||
CURRENT_UMU_DISTRIBUTIONS = frozenset(
|
||||
{"arch", "cachyos", "endeavouros", "garuda", "manjaro"}
|
||||
@@ -770,6 +774,7 @@ def _proton_environment(
|
||||
) -> dict[str, str]:
|
||||
if not selection.steam_root:
|
||||
raise RuntimeErrorPT("Steam root is missing for Proton")
|
||||
debug_logging = os.environ.get(PROTON_DEBUG_ENVIRONMENT_VARIABLE) == "1"
|
||||
environment = {
|
||||
"STEAM_COMPAT_CLIENT_INSTALL_PATH": selection.steam_root,
|
||||
"STEAM_COMPAT_DATA_PATH": str(paths.compat_data),
|
||||
@@ -777,10 +782,12 @@ def _proton_environment(
|
||||
"SteamAppId": "0",
|
||||
"SteamGameId": "0",
|
||||
"WINEPREFIX": str(paths.proton_prefix),
|
||||
"WINEDEBUG": "-all",
|
||||
"PROTON_LOG": "0",
|
||||
"WINEDEBUG": PROTON_DEBUG_WINE_CHANNELS if debug_logging else "-all",
|
||||
"PROTON_LOG": "1" if debug_logging else "0",
|
||||
"DXVK_STATE_CACHE_PATH": str(paths.dxvk_cache),
|
||||
}
|
||||
if debug_logging:
|
||||
environment["PROTON_LOG_DIR"] = str(paths.logs)
|
||||
environment.update(_proton_sync_environment(synchronization))
|
||||
return environment
|
||||
|
||||
|
||||
Reference in New Issue
Block a user