mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-04-22 06:02:04 +02:00
21 lines
538 B
Bash
21 lines
538 B
Bash
#!/bin/bash
|
|
|
|
if [[ ! -z "${LD_PRELOAD}" ]]; then
|
|
echo "LD_PRELOAD found with $LD_PRELOAD"
|
|
export ORIGINAL_LD_PRELOAD="$LD_PRELOAD"
|
|
export LD_PRELOAD=""
|
|
# export PATH=""
|
|
fi
|
|
#
|
|
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
if [[ $2 == *"iscriptevaluator.exe"* ]]; then
|
|
echo "ignoring iscriptevaluator.exe"
|
|
exit 0
|
|
fi
|
|
|
|
export LC_ALL=""
|
|
startset=$(echo "$@" | sed -e 's@waitforexitandrun @@g' -e 's@ --in-process-gpu@@g')
|
|
export gamef=$(dirname "$startset")
|
|
|
|
xdg-open "rpgmakermp:///$gamef"
|