Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
frostworx committed Aug 4, 2022
1 parent 11c5f02 commit 20472cd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ else
STLCFGDIR="$XDG_CONFIG_HOME/${PROGNAME,,}" # or in XDG_CONFIG_HOME if the user set the variable
fi

#486
function wip {
if [ -z "$XDG_CACHE_HOME" ]; then
STLCACHEDIR="$HOME/.cache/${PROGNAME,,}"
else
Expand All @@ -169,6 +171,7 @@ if [ -z "$XDG_DATA_HOME" ]; then
else
STLDATADIR="$XDG_DATA_HOME/${PROGNAME,,}"
fi
}

SYSTEMSTLCFGDIR="$PREFIX/share/${PROGNAME,,}" # systemwide config dir
BASELOGDIR="$STLCFGDIR/logs" # base logfile dir
Expand Down Expand Up @@ -5979,10 +5982,10 @@ function migrateCfgOption {
updateConfigEntry "CHECKCOLLECTIONS" "$CHECKCOLLECTIONS" "$STLGAMECFG"
fi

#XXXXXXXXX
#486
function wip {
writelog "INFO" "${FUNCNAME[0]} - Upcoming file migration. Some files in '$STLCFGDIR' will soon be migrated to '$STLDATADIR' or '$STLCACHEDIR' - see #486"

function wip {
if [ "$(df -P "$STLCFGDIR" | awk 'END{print $NF}')" == "$(df -P "$STLCACHEDIR" | awk 'END{print $NF}')" ];then
writelog "INFO" "${FUNCNAME[0]} - '$STLCACHEDIR' is on the same partition like '$STLCFGDIR'"
else
Expand Down Expand Up @@ -8908,10 +8911,14 @@ function updateConfigEntry {
CFGVALUE="0"
fi

function incomplete {
# issue #534
if [ "$CFGVALUE" == "DUMMY" ] || \
{ [ "$CFGVALUE" == "$NON" ] && \
{ [ "$CFGCAT" != "DXVK_LOG_LEVEL" ] && [ "$CFGCAT" != "DXVK_LOG_PATH" ] && [ "$CFGCAT" != "STL_PV_SHELL" ] ;};}
then
}
if [ "$CFGVALUE" == "DUMMY" ]; then
CFGVALUE=""
fi

Expand Down

0 comments on commit 20472cd

Please sign in to comment.