forked from CastroFidel/winehelper
the error of determining the current directory has been fixed
This commit is contained in:
11
winehelper
11
winehelper
@@ -1411,7 +1411,6 @@ wine_run () {
|
||||
then fatal "Нельзя запустить 64-битное приложение в 32-битном префиксе!"
|
||||
fi
|
||||
|
||||
cd "$win_file_path"
|
||||
else
|
||||
fatal "Команда введена не правильно или не найден исполняемый файл $1"
|
||||
fi
|
||||
@@ -1432,9 +1431,15 @@ wine_run () {
|
||||
env | grep -e "WH_" -e "WINE" -e "DXVK" -e "VKD3D" | tee -a "$log_file"
|
||||
|
||||
echo "##### Лог WINE #####" | tee -a "$log_file"
|
||||
$MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS 2>&1 | tee -a "$log_file"
|
||||
(
|
||||
cd "$win_file_path"
|
||||
$MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS 2>&1 | tee -a "$log_file"
|
||||
)
|
||||
else
|
||||
$MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS
|
||||
(
|
||||
cd "$win_file_path"
|
||||
$MANGOHUD_RUN "$WINELOADER" $wh_add_args "$win_file_exec" "$@" $LAUNCH_PARAMETERS
|
||||
)
|
||||
fi
|
||||
|
||||
wait_wineserver
|
||||
|
Reference in New Issue
Block a user