Skip to content

Commit

Permalink
Logging: Add more log paths to Game Files menu
Browse files Browse the repository at this point in the history
* Current log at /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log
* Current temp dir at /dev/shm/steamtinkerlaunch (to view other log files, not just steamtinkerlaunch.log)
* Per-game log folder at LOGDIR (by default, STLCFGDIR/logs/steamtinkerlaunch)
  • Loading branch information
sonic2kk committed Jun 16, 2024
1 parent 0a9e428 commit 0304d07
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lang/english.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1283,3 +1283,6 @@ GUI_IGNORECOMPATSLR="Ignore Native Linux Steam Linux Runtime from Compatibility
DESC_IGNORECOMPATSLR="ignore Steam Linux Runtime for native games selected either by you or by Valve Testing as a Compatibility Tool and let SteamTinkerLaunch find it instead. For example, ignore Steam Linux Runtime 3.0 selected by Valve Testing and let SteamTinkerLaunch find and use Steam Linux Runtime 1.0 instead. This can have MAJOR impacts on compatibility, and has NO EFFECT for games using Proton"
GUI_VORTEXDEVICESCALEFACTOR="Vortex GUI Scale Factor"
DESC_VORTEXDEVICESCALEFACTOR="uses the --device-scale-factor flag to set the Vortex GUI scale. Defaults to 1.0, but if you want a larger GUI you can set it to match your display's scale factor (or the largest scale factor, if using multiple across displays)"
GUI_STLSHMLOG="Current SteamTinkerLaunch log file"
GUI_STLSHMDIR="Current session logging directory"
GUI_STLPERGAMELOGSDIR="Per-game log files"
20 changes: 19 additions & 1 deletion steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20240612-1 (logging-access-improvements)"
PROGVERS="v14.0.20240612-3 (logging-access-improvements)"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -12960,6 +12960,24 @@ function setGameFilesArray {
GamFiles+=("$MAHUCID/${AID}.conf")
fi

# Open /dev/shm/steamtinkerlaunch directory
if [ -d "$STLSHM" ]; then
GamDesc+=("$GUI_STLSHMDIR")
GamFiles+=("$STLSHM")
fi

# Open logfile at /dev/shm/steamtinkerlaunch/steamtinkerlaunch.log
if [ -f "$TEMPLOG" ]; then
GamDesc+=("$GUI_STLSHMLOG")
GamFiles+=("$TEMPLOG")
fi

# Open game logging directory at, by default, STLCFGDIR/logs/steamtinkerlaunch
if [ -d "$LOGDIR" ]; then
GamDesc+=("$GUI_STLPERGAMELOGSDIR")
GamFiles+=("$LOGDIR")
fi

createCustomCfgs

GamDesc+=("$GUI_STLCVFILE")
Expand Down

0 comments on commit 0304d07

Please sign in to comment.