From 8610f9467c8a633dfe61bd55d0726eba18599ce7 Mon Sep 17 00:00:00 2001 From: castro-fidel Date: Thu, 10 Sep 2020 00:30:25 +0300 Subject: [PATCH] fix PATH_TO_GAME for more games --- data_from_portwine/scripts/portproton.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data_from_portwine/scripts/portproton.sh b/data_from_portwine/scripts/portproton.sh index 4231a07..862ac3e 100755 --- a/data_from_portwine/scripts/portproton.sh +++ b/data_from_portwine/scripts/portproton.sh @@ -2,10 +2,9 @@ # Author: PortWINE-Linux.ru . "$(dirname $(readlink -f "$0"))/runlib" if [ -f "$1" ]; then - portwine_exe="$1" - portwine_exe_path="$(dirname $(readlink -f "$1"))" + export portwine_exe="$(readlink -f "$1")" + export PATH_TO_GAME="$(dirname $(readlink -f "$1"))" START_PORTWINE - cd "${portwine_exe_path}" if [ ! -z ${optirun_on} ]; then ${optirun_on} "${port_on_run}" "run" "$portwine_exe" else