Skip to content

Commit

Permalink
fixed mixup switching pre and post hooks for bg3overlay 😬
Browse files Browse the repository at this point in the history
  • Loading branch information
alterNERDtive committed Oct 20, 2023
1 parent 0c92503 commit b37582d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bg3overlay
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ case $1 in
echo "Overlay not mounted."
exit 1
fi
[ -f "$(dirname $(realpath $0))/bg3overlay.pre" ] && . "$(dirname $(realpath $0))/bg3overlay.pre"
fusermount -u "${_common}/${_folder}"
rmdir "${_folder}"
mv bg3base "${_folder}"
rm -rf /tmp/bg3/work
[ -f "$(dirname $(realpath $0))/bg3overlay.post" ] && . "$(dirname $(realpath $0))/bg3overlay.post"
exit 0
;;
--enable)
if [ ${_mounted} -eq 0 ]; then
echo "Overlay already mounted."
exit 1
fi
[ -f "$(dirname $(realpath $0))/bg3overlay.pre" ] && . "$(dirname $(realpath $0))/bg3overlay.pre"
mv "${_folder}" bg3base
mkdir "${_folder}"
mkdir -p /tmp/bg3/{upper,work}
fuse-overlayfs -o lowerdir="${_library}/steamapps/compatdata/1086940/pfx/drive_c/users/steamuser/AppData/Local/Larian Studios/current/override":"${_common}/bg3base",upperdir=/tmp/bg3/upper,workdir=/tmp/bg3/work overlayfs "${_common}/${_folder}"
[ -f "$(dirname $(realpath $0))/bg3overlay.post" ] && . "$(dirname $(realpath $0))/bg3overlay.post"
exit 0
;;
*)
Expand Down

0 comments on commit b37582d

Please sign in to comment.