From f904ddacf729e4be19c740458e0c17acb34a02da Mon Sep 17 00:00:00 2001
From: castro-fidel <tergoevm@gmail.com>
Date: Tue, 6 Apr 2021 03:18:13 +0300
Subject: [PATCH] Fix download libs, mono and gecko.

---
 .../scripts/portwine_db/Epic Games Launcher   |  2 +-
 .../scripts/portwine_db/LifeIsStrange         |  8 +++
 .../scripts/portwine_db/arizona-starter       | 32 +++++++++++
 .../scripts/portwine_db/default               |  6 +-
 .../portwine_db/gothic-ii-gold-edition        | 12 ++++
 data_from_portwine/scripts/portwine_db/gta_sa |  6 +-
 data_from_portwine/scripts/portwine_db/setup  |  2 +-
 data_from_portwine/scripts/runlib             | 55 ++++++++++---------
 data_from_portwine/scripts/start.sh           |  8 +--
 .../scripts/vars/PortProton_vars              | 10 +---
 10 files changed, 94 insertions(+), 47 deletions(-)
 create mode 100644 data_from_portwine/scripts/portwine_db/LifeIsStrange
 create mode 100644 data_from_portwine/scripts/portwine_db/arizona-starter
 create mode 100644 data_from_portwine/scripts/portwine_db/gothic-ii-gold-edition

diff --git a/data_from_portwine/scripts/portwine_db/Epic Games Launcher b/data_from_portwine/scripts/portwine_db/Epic Games Launcher
index 86822ba..d5f034b 100755
--- a/data_from_portwine/scripts/portwine_db/Epic Games Launcher	
+++ b/data_from_portwine/scripts/portwine_db/Epic Games Launcher	
@@ -5,5 +5,5 @@
 ################################################
 export WINEDLLOVERRIDES="libglesv2="
 export LAUNCH_PARAMETERS="-opengl -SkipBuildPatchPrereq"
-export PW_DLL_INSTALL="vcrun2012 vcrun2013 vcrun2019 d3dcompiler_43 d3dcompiler_47 arial cjkfonts d3dx9"
+export PW_DLL_INSTALL="vcrun2010 vcrun2012 vcrun2013 vcrun2017 d3dcompiler_43 d3dcompiler_47 arial cjkfonts d3dx9"
 export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
diff --git a/data_from_portwine/scripts/portwine_db/LifeIsStrange b/data_from_portwine/scripts/portwine_db/LifeIsStrange
new file mode 100644
index 0000000..caf74c3
--- /dev/null
+++ b/data_from_portwine/scripts/portwine_db/LifeIsStrange
@@ -0,0 +1,8 @@
+#!/bin/bash
+#Author: Veil
+#LifeIsStrange.exe 
+#Rating=1-5
+################################################
+export PW_VULKAN_USE=dxvk
+export WINEDLLOVERRIDES="xapofx1_5,xaudio2_7=n,b"
+export PW_DLL_INSTALL=faudio
diff --git a/data_from_portwine/scripts/portwine_db/arizona-starter b/data_from_portwine/scripts/portwine_db/arizona-starter
new file mode 100644
index 0000000..9fd7f15
--- /dev/null
+++ b/data_from_portwine/scripts/portwine_db/arizona-starter
@@ -0,0 +1,32 @@
+#!/bin/bash
+    #Author: miku
+    #arizona-starter.exe 
+    #Rating=1-5
+    ################################################
+    export PW_VULKAN_USE=0
+#####################examples###########################
+##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL
+##export WINEDLLOVERRIDES="blabla=n,b"
+##export PW_DLL_INSTALL="vcrun2019 vcrun6"        # Install DDL in port prefix (used winetricks) 
+##export PW_LOG=0                                 # Enable debug mode fo terminal 
+##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
+##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives
+##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN
+##export PW_USE_TERMINAL=0                        # Force run in terminal
+##export PW_OLD_GL_STRING=0
+##export PW_NVAPI_DISABLE=1
+##export PW_VKD3D_FEATURE_LEVEL=0
+##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
+##export PW_HIDE_NVIDIA_GPU=0
+##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
+##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG
+##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod
+##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
+##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games
+##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options
+##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI 
+##export VKD3D_CONFIG=force_bindless_texel_buffer
+##export PW_WINDOWS_VER=10                      # Set windows version 10, 7 or XP
+##export PW_VIRTUAL_DESKTOP=1
+##ADD_IN_START_PORTWINE () { commands ; }
+##export DXVK_HUD=fps,devinfo
diff --git a/data_from_portwine/scripts/portwine_db/default b/data_from_portwine/scripts/portwine_db/default
index 8cbabf8..19a27ab 100644
--- a/data_from_portwine/scripts/portwine_db/default
+++ b/data_from_portwine/scripts/portwine_db/default
@@ -24,8 +24,10 @@
 ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games
 ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options
 ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI 
-##export VKD3D_CONFIG=force_bindless_texel_buffer
+##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr
 ##export PW_WINDOWS_VER=10                      # Set windows version 10, 7 or XP
 ##export PW_VIRTUAL_DESKTOP=1
-##ADD_IN_START_PORTWINE () { commands ; }
 ##export DXVK_HUD=fps,devinfo
+##export PW_HEAP_DELAY_FREE=0
+##export PW_DXGI_FROM_DXVK=0
+##ADD_IN_START_PORTWINE () { commands ; }
diff --git a/data_from_portwine/scripts/portwine_db/gothic-ii-gold-edition b/data_from_portwine/scripts/portwine_db/gothic-ii-gold-edition
new file mode 100644
index 0000000..80573bc
--- /dev/null
+++ b/data_from_portwine/scripts/portwine_db/gothic-ii-gold-edition
@@ -0,0 +1,12 @@
+#!/bin/bash
+    #Author: Ridbowt
+    #Sources: https://lutris.net/games/gothic-ii-gold-edition/
+    #GothicStarter.exe
+    #Gothic2.exe
+    #Rating=1-5
+    ################################################
+    export PW_VULKAN_USE=0
+#####################examples###########################
+export WINEDLLOVERRIDES="dsound=b"
+export PW_DLL_INSTALL="directmusic"        # Install DDL in port prefix (used winetricks) 
+export PW_WINDOWS_VER=7                      # Set windows version 10, 7 or XP
diff --git a/data_from_portwine/scripts/portwine_db/gta_sa b/data_from_portwine/scripts/portwine_db/gta_sa
index a91fd5e..81435de 100644
--- a/data_from_portwine/scripts/portwine_db/gta_sa
+++ b/data_from_portwine/scripts/portwine_db/gta_sa
@@ -3,6 +3,6 @@
 #gta_sa.exe 
 #Rating=1-5
 ################################################
-export PW_VULKAN_USE=dxvk
-export LAUNCH_PARAMETERS=""
-export PW_DLL_INSTALL="d3dx9 physx" 
\ No newline at end of file
+export PW_VULKAN_USE=0
+export LAUNCH_PARAMETERS="0"
+#export PW_DLL_INSTALL="d3dx9 physx" 
\ No newline at end of file
diff --git a/data_from_portwine/scripts/portwine_db/setup b/data_from_portwine/scripts/portwine_db/setup
index 7855993..a7be5a2 100644
--- a/data_from_portwine/scripts/portwine_db/setup
+++ b/data_from_portwine/scripts/portwine_db/setup
@@ -22,6 +22,6 @@ export PW_WINEDBG_DISABLE=1
 export PW_FORCE_DISABLED_GAMEMOD=1             # Force disabele gamemod
 export PW_FORCE_LARGE_ADDRESS_AWARE=0          # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
 #export PULSE_LATENCY_MSEC=60
-export PW_DLL_INSTALL="vcrun6 mfc42 vcrun6sp6 7zip"
+export PW_DLL_INSTALL="vcrun6 mfc42 vcrun6sp6"
 #export LAUNCH_PARAMETERS="-d3d9"
 export PW_GUI_DISABLED_CS=1
diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib
index 6d7d065..9f8714c 100755
--- a/data_from_portwine/scripts/runlib
+++ b/data_from_portwine/scripts/runlib
@@ -77,16 +77,14 @@ try_force_link_dir () {
     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
-        check_target_dir=`echo ${1} | awk -F/ '{print $NF}'`
-        [ -d "${2}${check_target_dir}" ] && rm -fr "${2}${check_target_dir}"
-        ln -s "$1" "$2"
+        ln -sf "$1" "$2"
         [ "$?" != 0 ] && print_error "failed to link directory $1 to $2" || return 0
     fi
     return 1  
 }
 try_download () {
     wget -c -t 3 -T 2 "$1" --output-document="$2"
-    [ "$?" != 0 ] && print_error "failed to download $1. Scipping." && return 1 || return 0 
+    [ "$?" != 0 ] && print_error "failed to download $1. Scipping." && export DOWNLOAD_ERROR=1 && return 1 || export DOWNLOAD_ERROR=0 && return 0 
 }
 create_new_dir () {
     if [ ! -d "$1" ] ; then
@@ -140,8 +138,8 @@ if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_ver" ]; then
 	echo "10" > "${PORT_WINE_TMP_PATH}/${portname}_ver"
 fi
 
-export pw_libs_ver="_v6"
-export pw_gecko_mono_ver="_v1"
+export pw_libs_ver="_v7"
+export pw_gecko_mono_ver="_v2"
 export PW_VULKAN_DLL="${PORT_WINE_PATH}"/data/vulkan
 export WINEDIR="${PORT_WINE_PATH}"/data/dist
 export WINELIB="${HOME}/.PortWINE/libs${pw_libs_ver}"
@@ -169,12 +167,12 @@ if [ -f "${WINEDIR}"_vkd3d/version ]; then
     PW_WINE_VER_VKD3D="( wine: $PW_WINE_VER_VKD3D )"
     zen_width=1000
 fi
-if [ ! -e "${WINELIB}/run.sh" ] || [ ! -e "${WINELIB}/usr/bin/yad" ] || [ ! -e "${WINELIB}/amd64/usr/bin/vkcube" ] || [ ! -e "${WINELIB}/amd64/usr/bin/xterm" ]; then 
+if [ ! -e "${WINELIB}/run.sh" ] || [ ! -e "${WINELIB}/usr/bin/yad" ] || [ ! -e "${WINELIB}/amd64/usr/bin/vkcube" ] || [ ! -e "${WINELIB}/amd64/usr/bin/xterm" ] || [ -e "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" ] ; then 
     echo "Download and install libraries..."
     try_download "${PW_FTP_URL}/dist/libs${pw_libs_ver}.tar.xz" "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" | sszen &&
-    tar -Jxvf "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" -C "${HOME}/.PortWINE/" | sszen &&
-    rm -f "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz"
-    "${WINELIB}"/setup.sh --force
+    [ "${DOWNLOAD_ERROR}" != 1 ] && tar -Jxvf "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" -C "${HOME}/.PortWINE/" | sszen &&
+    [ "${DOWNLOAD_ERROR}" != 1 ] && rm -f "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz"
+    [ "${DOWNLOAD_ERROR}" != 1 ] && "${WINELIB}"/setup.sh --force
 fi
 if [ -e "${WINELIB}/run.sh" ]; then 
     echo "######################################################"
@@ -185,12 +183,12 @@ else
     echo "######################################################"
     echo "Runtime libraries is disabled"
 fi
-if [ ! -d "${WINE_MONO_GECKO}/gecko" ] || [ ! -d "${WINE_MONO_GECKO}/mono" ] ; then 
+if [ ! -d "${WINE_MONO_GECKO}/gecko" ] || [ ! -d "${WINE_MONO_GECKO}/mono" ] || [ -e "${WINE_MONO_GECKO}.tar.xz" ] ; then 
     echo "######################################################"
     echo "Download and install wine mono and gecko..."
     try_download "${PW_FTP_URL}"/dist/mono_gecko${pw_gecko_mono_ver}.tar.xz  "${WINE_MONO_GECKO}.tar.xz" | sszen &&
-    ${PW_XTERM} tar -Jxvf "${WINE_MONO_GECKO}.tar.xz" -C "${HOME}/.PortWINE/" 
-    try_remove_file "${WINE_MONO_GECKO}.tar.xz"
+    [ "${DOWNLOAD_ERROR}" != 1 ] && ${PW_XTERM} tar -Jxvf "${WINE_MONO_GECKO}.tar.xz" -C "${HOME}/.PortWINE/" 
+    [ "${DOWNLOAD_ERROR}" != 1 ] && try_remove_file "${WINE_MONO_GECKO}.tar.xz"
 fi
 create_new_dir "${WINEDIR}/share/wine/"
 try_force_link_dir "${WINE_MONO_GECKO}"/gecko "${WINEDIR}"/share/wine/      
@@ -261,7 +259,7 @@ fi
         try_copy_file "${WINEDIR}"/lib/wine/fakedlls/dxgi.dll "${WINEPREFIX}/drive_c/windows/syswow64/"
         try_copy_file "${WINEDIR}"/lib64/wine/fakedlls/dxgi.dll "${WINEPREFIX}/drive_c/windows/system32/"
         var_winedlloverride_update "dxgi=b"
-        export WINEESYNC=""
+        export PW_FORCE_LARGE_ADDRESS_AWARE=0
         echo "Use OpenGL"
     elif [ "${var_pw_vulkan}" = "dxvk" ]; then
         if [ -d "${WINEDIR}_dxvk" ]; then
@@ -358,8 +356,9 @@ fi
         export WINEFSYNC="1"
         export WINEFSYNC_FUTEX2="1"
     fi
-    if [ ! -z "${PW_FORCE_LARGE_ADDRESS_AWARE}" ] && [ "${PW_FORCE_LARGE_ADDRESS_AWARE}" != 0 ] ; then
-        export WINE_LARGE_ADDRESS_AWARE="1"
+    if [ ! -z "${PW_FORCE_LARGE_ADDRESS_AWARE}" ] && [ "${PW_FORCE_LARGE_ADDRESS_AWARE}" != 0 ] 
+    then export WINE_LARGE_ADDRESS_AWARE="1"
+    else export WINE_LARGE_ADDRESS_AWARE="0"
     fi
     if [ ! -z "${PW_OLD_GL_STRING}" ] && [ "${PW_OLD_GL_STRING}" != 0 ] ; then
         export MESA_EXTENSION_MAX_YEAR="2003" #mesa override
@@ -383,6 +382,9 @@ fi
     if [ ! -z "${PW_VKD3D_FEATURE_LEVEL}" ] && [ "${PW_VKD3D_FEATURE_LEVEL}" != 0 ] ; then
         export VKD3D_FEATURE_LEVEL="12_0"
     fi
+    if [ ! -z "${PW_HEAP_DELAY_FREE}" ] && [ "${PW_HEAP_DELAY_FREE}" != 0 ] ; then
+        export WINE_HEAP_DELAY_FREE="1"
+    fi
 
     create_new_dir "${PORT_WINE_TMP_PATH}/dxvk_cache"
     export DXVK_STATE_CACHE_PATH="${PORT_WINE_TMP_PATH}"/dxvk_cache
@@ -604,10 +606,9 @@ PW_CREATE_PFX () {
     #sed -i '/HKCU,Software\\Valve\\Steam/d' "${WINEDIR}"*/share/wine/wine.inf 
     #sed -i '/HKLM,Software\\Wow6432Node\\Valve\\Steam/d' "${WINEDIR}"*/share/wine/wine.inf 
     #sed -i '/HKLM,Software\\Wow6432Node\\Valve\\Steam/d' "${WINEDIR}"*/share/wine/wine.inf 
-    #sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf 
-    #sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf 
-
     if [ ! -d "${WINEPREFIX}" ] || [ ! -d "${WINEPREFIX}"/drive_c/windows ] || [ ! -f "${WINEPREFIX}"/user.reg ] || [ ! -f "${WINEPREFIX}"/userdef.reg ] || [ ! -f "${WINEPREFIX}"/system.reg ] ; then
+        sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf 
+        sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf 
         PW_STOP_PROGRESS_BAR
         ${PW_XTERM} "${PW_RUNTIME}" "${WINELOADER}" wineboot -u 
         `zenity --info --title "Info..." --text "   Updating prefix completed successfully.\n\n   Restart ${portname}." --no-wrap ` > /dev/null 2>&1  
@@ -653,19 +654,19 @@ PW_RUN () {
 
     if [ ! -z "${PW_GAMEMODERUN}" ] && [ "${PW_GAMEMODERUN}" != 0 ] ; then
         if [ ! -z ${optirun_on} ]; then
-            echo "Full command line: ${optirun_on}  $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
-            ${optirun_on}  $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]} 
+            echo "Full command line: ${optirun_on}  $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}"
+            ${optirun_on}  $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} 
         else
-            echo "Full command line: $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
-            $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}
+            echo "Full command line: $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}"
+            $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}
         fi
     else 
         if [ ! -z ${optirun_on} ]; then
-            echo "Full command line: ${optirun_on}  $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
-            ${optirun_on}  $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]} 
+            echo "Full command line: ${optirun_on}  $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}"
+            ${optirun_on}  $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} 
         else
-            echo "Full command line: $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
-            $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}
+            echo "Full command line: $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}"
+            $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}
         fi
     fi
 }
diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh
index 8903b8b..4eeeae4 100755
--- a/data_from_portwine/scripts/start.sh
+++ b/data_from_portwine/scripts/start.sh
@@ -147,9 +147,9 @@ PORTWINE_DEBUG () {
         export PATH_TO_GAME="$( cd "$( dirname "${portwine_exe}" )" >/dev/null 2>&1 && pwd )"
         cd "$PATH_TO_GAME"
         if [ ! -z ${optirun_on} ]; then
-            ${optirun_on} $PW_XTERM "${WINELOADER}" explorer "$portwine_exe" ${LAUNCH_PARAMETERS} 2>&1 &
+            ${optirun_on} $PW_XTERM "${WINELOADER}" "$portwine_exe" ${LAUNCH_PARAMETERS[*]}  2>&1 &
         else
-            $PW_XTERM "${WINELOADER}" explorer "$portwine_exe" ${LAUNCH_PARAMETERS} 2>&1 &
+            $PW_XTERM "${WINELOADER}" "$portwine_exe" ${LAUNCH_PARAMETERS[*]}  2>&1 &
         fi
     elif [ -z "${gamestart}" ]; then 
         if [ ! -z $optirun_on ]; then
@@ -161,9 +161,9 @@ PORTWINE_DEBUG () {
         export PATH_TO_GAME="$( cd "$( dirname "${gamestart}" )" >/dev/null 2>&1 && pwd )"
         cd "$PATH_TO_GAME" 
         if [ ! -z $optirun_on ]; then
-            ${optirun_on} $PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" explorer "${gamestart}" ${LAUNCH_PARAMETERS} 2>&1 &
+            ${optirun_on} $PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" "${gamestart}" ${LAUNCH_PARAMETERS[*]}  2>&1 &
         else
-            $PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" explorer "${gamestart}" ${LAUNCH_PARAMETERS} 2>&1 &
+            $PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" "${gamestart}" ${LAUNCH_PARAMETERS[*]}  2>&1 &
         fi
     fi
 
diff --git a/data_from_portwine/scripts/vars/PortProton_vars b/data_from_portwine/scripts/vars/PortProton_vars
index d57cd4c..429d79e 100755
--- a/data_from_portwine/scripts/vars/PortProton_vars
+++ b/data_from_portwine/scripts/vars/PortProton_vars
@@ -4,19 +4,11 @@
 export porturl="http://portwine-linux.ru/"
 ########################################################################
 #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
-export WINEDLLOVERRIDES=""
 export PW_LOG=0             # Enable debug mode fo terminal 
-export PW_NO_FSYNC=0        # Do not use futex-based in-process synchronization primitives. Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
-export PW_NO_ESYNC=0        # Do not use eventfd-based in-process synchronization primitives
-export PW_DXVK_NO_ASYNC=0
 export PW_USE_TERMINAL=0
-export PW_OLD_GL_STRING=0
 export PW_NVAPI_DISABLE=1
-export PW_NO_WRITE_WATCH=0          # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
-export PW_HIDE_NVIDIA_GPU=0
 export PW_FORCE_USE_VSYNC=2         # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
-export PW_WINEDBG_DISABLE=1
-export PW_VKD3D_FEATURE_LEVEL=0
+export PW_WINEDBG_DISABLE=0
 export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod
 export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
 export PULSE_LATENCY_MSEC=60
-- 
2.24.1