PortWINE/data_from_portwine/scripts/portproton.sh
2020-12-02 22:02:14 +03:00

18 lines
535 B
Bash
Executable File

#!/bin/bash
# Author: PortWINE-Linux.ru
. "$(dirname $(readlink -f "$0"))/runlib"
if [ -f "$1" ]; then
export portwine_exe="$(readlink -f "$1")"
export PATH_TO_GAME="$( cd "$( dirname "$1" )" >/dev/null 2>&1 && pwd )"
START_PORTWINE
if [ ! -z ${optirun_on} ]; then
"${PW_RUNTIME}" $PW_TERM ${optirun_on} "${port_on_run}" "run" "$portwine_exe"
else
"${PW_RUNTIME}" $PW_TERM "${port_on_run}" "run" "$portwine_exe"
fi
else
START_PORTWINE
sh "${PORT_SCRIPTS_PATH}/winefile"
fi
STOP_PORTWINE