then try_force_link_dir "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/users/steamuser/Documents""${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/users/steamuser/My Documents"
fi
#enabled BattleEye_Runtime and EasyAntiCheat_Runtime
then try_force_link_file "${WINEDIR}"/lib/wine/i386-windows/dxgi.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/dxgi.dll"
then try_force_link_file "${WINEDIR}"/lib64/wine/x86_64-windows/dxgi.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/dxgi.dll"
fi
echo"Try link wine d3d filese..."
for wine_build_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 ;do
then try_force_link_file "${WINEDIR}/lib/wine/i386-windows/${wine_build_dll}.dll""${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/${wine_build_dll}.dll"
then try_force_link_file "${WINEDIR}/lib64/wine/x86_64-windows/${wine_build_dll}.dll""${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/${wine_build_dll}.dll"
then try_force_link_file "${WINEDIR}"/lib/wine/i386-windows/dxgi.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/syswow64/dxgi.dll"
then try_force_link_file "${WINEDIR}"/lib64/wine/x86_64-windows/dxgi.dll "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/windows/system32/dxgi.dll"
[$(id-u)-eq 0 ]&&echo"Do not run the script from the superuser!"&& zenity --error--text"Do not run the script from the superuser!" 2> /dev/null &&exit 1
[$(id-u)-eq 0 ]&&echo"Do not run the script from the superuser!"&& zenity --error--text"Do not run the script from the superuser!" 2> /dev/null &&exit 1
PW_SET_LANG=`zenity --title"Install $portname"--text"Select the installation language"--list--radiolist\
--column="Set:"--column"Language:"\
TRUE "Russian"\
FALSE "English"` 2> /dev/null
if[$?-eq 1 ];then exit 1 ;fi
case$PW_SET_LANGin
"Russian")
INFO_TEXT="Вы запустили установщик PortWINE ${portname} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nВсе права сторонего програмного обеспечения принадлежат их владельцам! \nПродолжая установку вы автоматически соглашаетесь с данными условиями."> /dev/null 2>&1 ;;
"English")
INFO_TEXT="You run the installer PortWINE ${portname} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nAll rights to third-party software belong to their respective owners! \nContinuing the installation of you agree to these terms."> /dev/null 2>&1 ;;
inst1=`zenity --title"Install ${portname}"--text"Выберите путь для установки (обновления) порта,\nили оставьте его по умолчанию."--list--radiolist--width=350 --height=220 \
inst1=`zenity --title"Install ${portname}"--text"Select the installation path (update) port,\nor leave it in default."--list--radiolist--width=350 --height=220 \
--column="Set..."--column"Path:"\
TRUE "${deflink}"\
FALSE "Other path..."` 2> /dev/null
if[$?-eq 1 ];then exit 1;fi
case$inst1in
"${deflink}")
D_PATH="${deflink}";;
"Other path...")
D_PATH=`zenity --file-selection--directory--title="Select the path..."`