forked from CastroFidel/PortWINE
Scripts version 2090.1
This commit is contained in:
@ -63,8 +63,8 @@ try_remove_dir () {
|
||||
export -f try_remove_dir
|
||||
|
||||
try_force_link_file () {
|
||||
if [ -z "$2" ] ; then
|
||||
print_error "no way to link file $1"
|
||||
if [ ! -f "$1" ] ; then print_info "file $1 not found for link"
|
||||
elif [ -z "$2" ] ; then print_error "no way to link file $1"
|
||||
else
|
||||
ln -sf "$1" "$2"
|
||||
[ "$?" != 0 ] && print_error "failed to link file $1 to $2" || return 0
|
||||
@ -88,8 +88,8 @@ check_symlink () {
|
||||
export -f check_symlink
|
||||
|
||||
try_force_link_dir () {
|
||||
if [ -z "$2" ] ; then
|
||||
print_error "no way to link directory $1"
|
||||
if [ ! -d "$1" ] ; then print_info "directory $1 not found for link"
|
||||
elif [ -z "$2" ] ; then print_error "no way to link directory $1"
|
||||
else
|
||||
ln -sf "$1" "$2"
|
||||
[ "$?" != 0 ] && print_error "failed to link directory $1 to $2" || return 0
|
||||
|
@ -311,14 +311,9 @@ start_portwine () {
|
||||
! -f "${WINEPREFIX}"/userdef.reg || ! -f "${WINEPREFIX}"/system.reg || ! -f "${WINEPREFIX}"/user.reg ]]
|
||||
then
|
||||
pw_clear_pfx
|
||||
# OLD_PW_WINE_USE="${PW_WINE_USE}"
|
||||
# export PW_WINE_USE=${PW_PROTON_STEAM_VER}
|
||||
# init_wine_ver
|
||||
check_dirs_and_files_in_pfx
|
||||
${pw_runtime} env LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" "${WINELOADER}" wineboot -i &>>"${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
wait_wineserver &&
|
||||
# export PW_WINE_USE="${OLD_PW_WINE_USE}"
|
||||
# init_wine_ver
|
||||
echo "${PW_WINE_USE}" > "${WINEPREFIX}/.wine_ver"
|
||||
elif [[ -z "`cat "${WINEPREFIX}/.wine_ver" | grep ${PW_WINE_USE}`" ]] ; then
|
||||
check_dirs_and_files_in_pfx
|
||||
|
Reference in New Issue
Block a user