Skip to content

Commit

Permalink
ModOrganizer 2: Fix incorrect escaping when generating INI settings p…
Browse files Browse the repository at this point in the history
…aths
  • Loading branch information
sonic2kk committed Jun 23, 2024
1 parent 92cadd4 commit 144347b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions 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.20240623-2"
PROGVERS="v14.0.20240624-1"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -17596,6 +17596,7 @@ function manageMO2GInstance {
if [ -d "$MO2GADI" ]; then
MO2GAZDI="Z:${MO2GADI//\//\\\\}"
mkProjDir "$MOIN"
writelog "INFO" "${FUNCNAME[0]} - GLOBZMOIN is '$GLOBZMOIN'"
touch "$MOININI"
# This used to use `echo` but was changed because of ShellCheck SC2028
# The behaviour was different too, echo was returning '\\\\' but printf was returning '\\'
Expand All @@ -17607,11 +17608,11 @@ function manageMO2GInstance {
echo "selected_profile=@ByteArray(Default)"
echo "gamePath=@ByteArray($MO2GAZDI)"
echo "[Settings]"
printf "download_directory=%s\\\\downloads\n" "${GLOBZMOIN}"
printf "cache_directory=%s\\\\webcache\n" "${GLOBZMOIN}"
printf "mod_directory=%s\\\mods\n" "${GLOBZMOIN}"
printf "overwrite_directory=%s\\\\overwrite\n" "${GLOBZMOIN}"
printf "profiles_directory=%s\\\\profiles\n" "${GLOBZMOIN}"
printf "download_directory=%s\\\\\\\\downloads\r\n" "${GLOBZMOIN}"
printf "cache_directory=%s\\\\\\\\webcache\r\n" "${GLOBZMOIN}"
printf "mod_directory=%s\\\\\\\\mods\r\n" "${GLOBZMOIN}"
printf "overwrite_directory=%s\\\\\\\\overwrite\r\n" "${GLOBZMOIN}"
printf "profiles_directory=%s\\\\\\\\profiles\r\n" "${GLOBZMOIN}"
} >> "$MOININI"
MOINEW=1
else
Expand Down

0 comments on commit 144347b

Please sign in to comment.