22 lines
1.1 KiB
Bash
Executable file
22 lines
1.1 KiB
Bash
Executable file
if [ -z ${dir+x} ]; then echo "\$dir not set, skipping."; exit 22; else
|
|
wget https://gitea.tendokyu.moe/TeamTofuShop/segatools/releases/download/latest/segatools.zip -O /tmp/segatools.zip
|
|
mkdir -p $dir/segatools/{amfs,appdata,option}
|
|
unzip -p /tmp/segatools.zip mercury.zip | bsdtar -xf- -C $dir/game/bin
|
|
fi
|
|
|
|
sed -i '/^\[vfs\]/,/^\[/ {
|
|
/^amfs=/c\amfs=..\\\\..\\\\segatools\\\\amfs
|
|
/^option=/c\option=..\\\\..\\\\segatools\\\\option
|
|
/^appdata=/c\appdata=..\\\\..\\\\segatools\\\\appdata
|
|
}' $dir/game/bin/segatools.ini
|
|
|
|
if [ -z ${PORT_AIME_READER+x} ]; then echo "\$Card reader binding not set, skipping."; else
|
|
echo "Card reader binding set, disabling card reader assembly emulation"
|
|
sed -i '/^\[aime\]/,/^enable=1/ s/^enable=1/enable=0/' $dir/game/bin/segatools.ini
|
|
fi
|
|
if [ -z ${PORT_CONSOLE_LEFT+x} ]; then echo "\$Left console binding not set, skipping."; else
|
|
if [ -z ${PORT_CONSOLE_RIGHT+x} ]; then echo "\$Right console binding not set, skipping."; else
|
|
echo "Console binding set, disabling mercuryio touch hooks"
|
|
sed -i '/^\[touch\]/,/^enable=1/ s/^enable=1/enable=0/' $dir/game/bin/segatools.ini
|
|
fi
|
|
fi
|