mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-06-08 10:15:58 +02:00
Update rpgmaker-linux-cicpoffs-wrapper.sh
This commit is contained in:
parent
025dd20a25
commit
a2ffabdb6b
1 changed files with 12 additions and 4 deletions
|
@ -7,21 +7,29 @@ if [[ ! -z "${LD_PRELOAD}" ]]; then
|
||||||
# export PATH=""
|
# export PATH=""
|
||||||
fi
|
fi
|
||||||
export LD_LIBRARY_PATH=""
|
export LD_LIBRARY_PATH=""
|
||||||
|
|
||||||
#
|
|
||||||
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
if [[ $2 == *"iscriptevaluator.exe"* ]]; then
|
if [[ $2 == *"iscriptevaluator.exe"* ]]; then
|
||||||
echo "ignoring iscriptevaluator.exe"
|
echo "ignoring iscriptevaluator.exe"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$SteamAppId" ]; then
|
if [ -z "$SteamAppId" ]; then
|
||||||
echo "no steam app id"
|
echo "no steam app id, exiting"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
export LC_ALL=""
|
export LC_ALL=""
|
||||||
startset=$(echo "$@" | sed -e 's@waitforexitandrun @@g' -e 's@ --in-process-gpu@@g')
|
startset=$(echo "$@" | sed -e 's@waitforexitandrun @@g' -e 's@ --in-process-gpu@@g')
|
||||||
export gamef=$(dirname "$startset")
|
export gamef=$(dirname "$startset")
|
||||||
|
|
||||||
|
# zenity --error --text "$gamef"
|
||||||
|
|
||||||
|
if [ -f "$HOME/desktopapps/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh" ]; then
|
||||||
|
$HOME/desktopapps/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh --gui
|
||||||
|
else
|
||||||
|
##steam's xgd-open stopped working, using default
|
||||||
|
NEWPATH=$(echo "$PATH" | tr ':' '\n' | grep -v "steam-run" | tr '\n' ':')
|
||||||
|
export PATH=$NEWPATH
|
||||||
xdg-open "rpgmakermp:///$gamef"
|
xdg-open "rpgmakermp:///$gamef"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue