Fix error: start.exe

This commit is contained in:
castro-fidel 2021-04-04 17:39:35 +03:00
parent 66d9182c3e
commit 366dcb42a7
27 changed files with 1062 additions and 672 deletions

@ -0,0 +1,8 @@
#!/bin/bash
#Author: Аливэй
#Ableton Live 11 Suite.exe
#Rating=5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export PW_WINDOWS_VER=10

@ -0,0 +1,7 @@
#!/bin/bash
#Author: Сергей 33 (46)
#BF2.exe
#Rating=4
################################################
export PW_VULKAN_USE=vkd3d
export PW_WINDOWS_VER="7"

@ -0,0 +1,9 @@
#!/bin/bash
#Author:
#bg3_dx11.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export PW_DLL_INSTALL="d3dcompiler_43 d3dcompiler_47 vcrun2019"
#export DXVK_HUD=1

@ -0,0 +1,8 @@
#!/bin/bash
#Author:
#bg3.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=vkd3d
export LAUNCH_PARAMETERS=""
#export MANGOHUD=1

@ -0,0 +1,11 @@
#!/bin/bash
#Author: dez
#Battle.net Launcher.exe
#Battle.net-Setup.exe
#Rating=5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export PW_DLL_INSTALL="vcrun2019 arial"
export PW_WINDOWS_VER=10
export PW_NVAPI_DISABLE=1

@ -4,9 +4,9 @@
#Rating=?
################################################
export PW_VULKAN_USE=vkd3d
export WINEDLLOVERRIDES="amd_ags_x64=n,b"
#export WINEDLLOVERRIDES="amd_ags_x64=b"
#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_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
#export PW_USE_TERMINAL=1
@ -21,7 +21,7 @@ export PW_NO_ESYNC=1 # Do not use eventfd-based in-process synchronizatio
#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
#export PW_DLL_INSTALL="foo bar"
declare -a LAUNCH_PARAMETERS
export LAUNCH_PARAMETERS=('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')
export LAUNCH_PARAMETERS="+in_terminal 1 +com_skipIntroVideo 1 +com_skipSignInManager 1"
#export PW_GUI_DISABLED_CS=1
#export PW_DXGI_FROM_DXVK=1
#export VK_ICD_FILENAMES="/opt/amdgpu/etc/vulkan/icd.d/amd_icd64.json"

@ -0,0 +1,9 @@
#!/bin/bash
#Author: MrModer#6697
#DetroitBecomeHuman.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export PW_FORCE_USE_VSYNC=0
export PW_WINDOWS_VER="10"
export PW_VIRTUAL_DESKTOP=1

@ -0,0 +1,31 @@
#!/bin/bash
#Author: spider
#Diablo II.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 ; }

@ -0,0 +1,11 @@
#!/bin/bash
#Author: lemonchic with help from Dezert1r
#GTAIV.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export PW_NO_ESYNC=1
export PW_NO_FSYNC=1
export LAUNCH_PARAMETERS="-nomemrestrict -norestrictions -percentvidmem 100 -availablevidmem 2048 -novblank" # Change -availablevidmem 2048 if you have less than 2 Gb video memory
##export RADV_DEBUG=nodcc # Enable if you have Big Navi videocard (Radeon RX 60xx)

@ -0,0 +1,10 @@
#!/bin/bash
#Author: nixon
#HITMAN3.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=vkd3d
export LAUNCH_PARAMETERS=""
export PW_DXGI_FROM_DXVK=1
#export MANGOHUD=1
#export PW_NVAPI_DISABLE=1 # for nvidia gpu

@ -0,0 +1,7 @@
#!/bin/bash
#Author:
#HellbladeGame.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""

@ -0,0 +1,31 @@
#!/bin/bash
#Author: mrm0der
#LOF2.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
#####################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=120 # 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 ; }

@ -0,0 +1,9 @@
#!/bin/bash
#Author: Aliway
#Little Nightmares II.exe
#Rating=5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export PW_WINDOWS_VER=10

@ -3,5 +3,5 @@
#Praest.exe
#Rating=5
################################################
export PW_VULKAN_USE=vkd3d
export LAUNCH_PARAMETERS=""
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS="-dx11"

@ -0,0 +1,7 @@
#!/bin/bash
#Author: MrModer
#RADMIR_LAUNCHER.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=0
export WINEDLLOVERRIDES="libglesv2="

@ -0,0 +1,10 @@
#!/bin/bash
#Author: Garrett
#RockstarService.exe
#Launcher.exe
#LauncherPatcher.exe
#Rating=?
################################################
export PW_VULKAN_USE=dxvk
export PW_DLL_INSTALL="arial vcrun2019"
export PW_WINDOWS_VER=10

@ -0,0 +1,7 @@
#!/bin/bash
#Author: Veil
#Secrets Of Grindea.exe
#Rating=5
################################################
export PW_VULKAN_USE=dxvk
export PW_DLL_INSTALL="faudio"

@ -0,0 +1,32 @@
#!/bin/bash
#Author: PortWINE-Linux.ru
#Sirus Launcher.exe
#Rating=4
#####################examples###########################
export PW_VULKAN_USE=dxvk # dxvk, vkd3d or 0 for OpenGL
export PW_WINDOWS_VER=7 # Set windows version 10, 7 or XP
#####################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 ; }

@ -0,0 +1,8 @@
#!/bin/bash
#Author:
#Enderal Launcher.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export PW_WINDOWS_VER=7

@ -0,0 +1,8 @@
#!/bin/bash
#Author: merkli
#XR_3DA.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=0
export LAUNCH_PARAMETERS="-nointro -noprefetch" # -nointro command line option to skip intro movies
# -noprefetch command line option to shorten load times

@ -3,6 +3,6 @@
#avengers.exe
#Rating=?
################################################
export PW_VULKAN_USE=dxvk
export PW_VULKAN_USE=vkd3d
export LAUNCH_PARAMETERS=""
export WINEDLLOVERRIDES="amd_ags_x64=b"
#export WINEDLLOVERRIDES="amd_ags_x64=b"

@ -0,0 +1,8 @@
#!/bin/bash
#Author:
#gta_sa.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export LAUNCH_PARAMETERS=""
export PW_DLL_INSTALL="d3dx9 physx"

@ -0,0 +1,131 @@
#!/bin/bash
#Author: Ridbowt (Nikola P.)
#Sources: https://www.gog.com/forum/medal_of_honor_series/moh_dont_start_on_linux/post2 + https://lutris.net/games/medal-of-honor-allied-assault-war-chest/ + https://www.playground.ru/medal_of_honor_allied_assault/cheat/medal_of_honor_allied_assault_sovet_lyuboe_razreshenie_dalnost_prorisovki_pole_obzora_fov_pravilnoe_otkrytie_vseh_medalej-816472
#Comment: Резервные копии кофиг-файлов находятся в корне игры, в каталогах "/Medal of Honor/main/" + "/Medal of Honor/main/configs/", "/Medal of Honor/mainta/" + "/Medal of Honor/mainta/configs/", "/Medal of Honor/maintt/" + "/Medal of Honor/maintt/configs/". Чтобы восстановить исходные конфигурации - просто удалите в этих каталогах файлы newconfig.cfg и unnamedsoldier.cfg; после этого удалите расширение .bak у файлов newconfig.cfg.bak и unnamedsoldier.cfg.bak.
#MOHAA.exe
#moh_spearhead.exe
#moh_breakthrough.exe
#Rating=5
################################################
export PW_VULKAN_USE=0
export LAUNCH_PARAMETERS=""
export MESA_EXTENSION_MAX_YEAR=2002
export __GL_ExtensionStringVersion=17700
ADD_IN_START_PORTWINE ()
{
if [ ! -e "$PATH_TO_GAME/0_Proton_PW_MoHAA" ] ; then
touch "$PATH_TO_GAME/0_Proton_PW_MoHAA" && mv "$PATH_TO_GAME/main/newconfig.cfg" "$PATH_TO_GAME/main/newconfig.cfg.bak" && mv "$PATH_TO_GAME/main/configs/unnamedsoldier.cfg" "$PATH_TO_GAME/main/configs/unnamedsoldier.cfg.bak" && mv "$PATH_TO_GAME/mainta/newconfig.cfg" "$PATH_TO_GAME/mainta/newconfig.cfg.bak" && mv "$PATH_TO_GAME/mainta/configs/unnamedsoldier.cfg" "$PATH_TO_GAME/mainta/configs/unnamedsoldier.cfg.bak" && mv "$PATH_TO_GAME/maintt/newconfig.cfg" "$PATH_TO_GAME/maintt/newconfig.cfg.bak" && mv "$PATH_TO_GAME/maintt/configs/unnamedsoldier.cfg" "$PATH_TO_GAME/maintt/configs/unnamedsoldier.cfg.bak" &&
echo '//
// Video Card Family: NVidia GeForce
// Video Card Driver: NVIDIA GeForce GTX 760
//
// Mhz 1100
// Vidmem 64
// Sysmem 256
//
seta com_maxfps "144"
seta cg_drawviewmodel "2"
seta cg_effectdetail "1.0"
seta cg_marks_add "1"
seta cg_max_tempmodels "1200"
seta cg_rain "1"
seta cg_reserve_tempmodels "240"
seta cg_shadows "2"
seta g_ddayfodderguys "2"
seta g_ddayfog "0"
seta g_ddayshingleguys "2"
seta r_colorbits "32"
seta r_drawstaticdecals "1"
seta r_ext_compressed_textures "1"
seta r_fastdlights "0"
seta r_fastentlight "0"
seta r_forceClampToEdge "1"
seta r_lodcap "1.0"
seta r_lodscale "1.1"
seta r_lodviewmodelcap "1.0"
seta r_maxmode "9"
seta r_picmip "0"
seta r_picmip_models "0"
seta r_picmip_sky "0"
seta r_subdivisions "1"
seta r_texturebits "32"
seta r_texturemode "GL_LINEAR_MIPMAP_LINEAR"
seta r_vidmode1024 "0"
seta r_vidmodemax "1"
seta s_khz "44"
seta ter_error "4"
seta ter_maxlod "6"
seta ter_maxtris "24576"
seta vss_draw "1"
seta vss_maxcount "15"
' | tee "$PATH_TO_GAME/main/newconfig.cfg" | tee "$PATH_TO_GAME/mainta/newconfig.cfg" | tee "$PATH_TO_GAME/maintt/newconfig.cfg" >/dev/null &&
echo '// generated by moh:aa do not modify
//
// Key Bindings
//
unbindall
bind TAB "+scores"
bind ESCAPE "togglemenu"
bind SPACE "+moveup"
bind 1 "useweaponclass pistol"
bind 2 "useweaponclass rifle"
bind 3 "useweaponclass smg"
bind 4 "useweaponclass mg"
bind 5 "useweaponclass grenade"
bind 6 "useweaponclass heavy"
bind 7 "toggleitem"
bind ` "toggleconsole"
bind a "+moveleft"
bind c "+leanright"
bind d "+moveright"
bind e "+use"
bind h "weapdrop"
bind p "pushmenu_weaponselect"
bind q "holster"
bind r "reload"
bind s "+back"
bind t "sayteam"
bind u "pushmenu_teamselect"
bind v "instamsg_main"
bind w "+forward"
bind y "say"
bind z "+leanleft"
bind PAUSE "pause"
bind LCTRL "+movedown"
bind LSHIFT "+speed"
bind F2 "ui_getplayermodel;pushmenu_dm mpoptions"
bind F3 "pushmenu Controls"
bind F4 "pushmenu_sp LoadSave"
bind F5 "savegame quick"
bind F6 "messagemode"
bind F9 "loadgame quick"
bind F12 "screenshot"
bind MOUSE1 "+attackprimary"
bind MOUSE2 "+attacksecondary"
bind MWHEELDOWN "weapprev"
bind MWHEELUP "weapnext"
//
// Cvars
//
seta ui_console "1"
seta r_mode "-1"
seta r_customWidth "1920"
seta r_customHeight "1080"
seta s_milesdriver "Miles Fast 2D Positional Audio"
seta r_gamma "1.000000"
seta r_lastValidRenderer "GeForce GTX 760/PCIe/SSE2"
seta sensitivity "10.750000"
seta s_volume "0.900000"
seta s_musicvolume "0.900000"
seta vss_maxcount "10"
seta r_texturemode "gl_linear_mipmap_linear"
seta developer "1"
//
// Aliases
//
' | tee "$PATH_TO_GAME/main/configs/unnamedsoldier.cfg" | tee "$PATH_TO_GAME/mainta/configs/unnamedsoldier.cfg" | tee "$PATH_TO_GAME/maintt/configs/unnamedsoldier.cfg" >/dev/null
else
true
fi
}

@ -6,3 +6,4 @@
export PW_VULKAN_USE=dxvk #dxvk, vkd3d or 0 for OpenGL
#export PW_DLL_INSTALL="" # Install DDL in port prefix (used winetricks)
export LAUNCH_PARAMETERS="--disable-gpu" # Additional launch options
export PW_USE_TERMINAL=1

@ -0,0 +1,32 @@
#!/bin/bash
#Author: chal55rus
#wotblitz.exe
#Rating=1-5
################################################
export PW_VULKAN_USE=dxvk
export PW_DLL_INSTALL="vcrun2013 vcrun2017 dotnet472"
#####################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 ; }

@ -14,82 +14,91 @@ if [ "${s_install}" != "1" ] && [ ! -x "`which "zenity" 2>/dev/null`" ];then
echo "You will need to install: zenity, and restart the port."
xdg-open "http://portwine-linux.ru/portwine-faq/" > /dev/null 2>&1 & exit 0
fi
print_error () {
PS1_old="${PS1}" && PS1="\e[40;11;31m[\u@\h \W]$"
echo "ERROR: $@"
PS1="${PS1_old}"
}
print_info () {
PS1_old="${PS1}" && PS1="\e[40;11;36m[\u@\h \W]$"
echo "INFO: $@"
PS1="${PS1_old}"
}
print_var () {
PS1_old="${PS1}" && PS1="\e[47;11;30m[\u@\h \W]$"
for vp in $@ ; do echo "${vp} = ${!vp}" ; done
PS1="${PS1_old}"
}
try_copy_file () {
if [ ! -f "$1" ] ; then
echo "INFO: file $1 not found for copy"
elif [ -z "$2" ] ; then
echo "ERROR: no way to copy file $1"
if [ ! -f "$1" ] ; then print_info "file $1 not found for copy"
elif [ -z "$2" ] ; then print_error "no way to copy file $1"
else
cp -f "$1" "$2"
[ "$?" != 0 ] && echo "ERROR: failed to copy file $1 to $2" || return 0
[ "$?" != 0 ] && print_error "failed to copy file $1 to $2" || return 0
fi
return 1
}
try_copy_dir () {
if [ ! -d "$1" ] ; then
echo "INFO: directory $1 not found for copy"
elif [ -z "$2" ] ; then
echo "ERROR: no way to copy directory $1"
if [ ! -d "$1" ] ; then print_info "directory $1 not found for copy"
elif [ -z "$2" ] ; then print_error "no way to copy directory $1"
else
cp -fr "$1" "$2"
[ "$?" != 0 ] && echo "ERROR: failed to copy directory $1 to $2" || return 0
[ "$?" != 0 ] && print_error "failed to copy directory $1 to $2" || return 0
fi
return 1
}
try_remove_file () {
if [ ! -f "$1" ] ; then
echo "INFO: file $1 not found for remove"
if [ ! -f "$1" ] ; then print_info "file $1 not found for remove"
else
rm -f "$1"
[ "$?" != 0 ] && echo "ERROR: failed to remove file $1" || return 0
[ "$?" != 0 ] && print_error "failed to remove file $1" || return 0
fi
return 1
}
try_remove_dir () {
if [ ! -d "$1" ] ; then
echo "INFO: directory $1 not found for remove"
if [ ! -d "$1" ] ; then print_info "directory $1 not found for remove"
else
rm -fr "$1"
[ "$?" != 0 ] && echo "ERROR: failed to remove directory $1" || return 0
[ "$?" != 0 ] && print_error "failed to remove directory $1" || return 0
fi
return 1
}
try_force_link_file () {
if [ ! -f "$1" ] ; then
echo "INFO: file $1 not found for link"
elif [ -z "$2" ] ; then
echo "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
[ -f "$2" ] && rm -f "$2"
ln -s "$1" "$2"
[ "$?" != 0 ] && echo "ERROR: failed to link file $1 to $2" || return 0
[ "$?" != 0 ] && print_error "failed to link file $1 to $2" || return 0
fi
return 1
}
try_force_link_dir () {
if [ ! -d "$1" ] ; then
echo "INFO: directory $1 not found for link"
elif [ -z "$2" ] ; then
echo "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
check_target_dir=`echo ${1} | awk -F/ '{print $NF}'`
[ -d "${2}${check_target_dir}" ] && rm -fr "${2}${check_target_dir}"
ln -s "$1" "$2"
[ "$?" != 0 ] && echo "ERROR: failed to link directory $1 to $2" || return 0
[ "$?" != 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 ] && echo "ERROR: failed to download $1. Scipping." || return 0
[ "$?" != 0 ] && print_error "failed to download $1. Scipping." && return 1 || return 0
}
create_new_dir () {
if [ ! -d "$1" ] ; then
mkdir -p "$1"
fi
}
var_winedlloverride_update () {
if [ ! -z "${WINEDLLOVERRIDES}" ]
then export WINEDLLOVERRIDES="${1};${WINEDLLOVERRIDES}"
else export WINEDLLOVERRIDES="${1}"
fi
}
sszen() {
zenity --progress --title="Settings..." --text="Updating parameters" --no-cancel --pulsate --auto-close --width 400
@ -130,7 +139,8 @@ fi
if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_ver" ]; then
echo "10" > "${PORT_WINE_TMP_PATH}/${portname}_ver"
fi
export pw_libs_ver="_v5"
export pw_libs_ver="_v6"
export pw_gecko_mono_ver="_v1"
export PW_VULKAN_DLL="${PORT_WINE_PATH}"/data/vulkan
export WINEDIR="${PORT_WINE_PATH}"/data/dist
@ -145,9 +155,8 @@ export urlg="https://portwine-linux.ru/portwine-faq/"
export PW_FTP_URL="https://portwine-linux.ru/ftp"
export PW_TERM=""
export PW_WINE_VER_DXVK=""
if [ -z "${WINEDLLOVERRIDES}" ] ; then
export WINEDLLOVERRIDES="winemenubuilder.exe="
fi
var_winedlloverride_update "winemenubuilder.exe="
zen_width=500
if [ -f "${WINEDIR}"_dxvk/version ]; then
read PW_WINE_VER_DXVK < "${WINEDIR}"_dxvk/version
@ -251,6 +260,7 @@ if [ "${var_pw_vulkan}" = "0" ]; then
done
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=""
echo "Use OpenGL"
elif [ "${var_pw_vulkan}" = "dxvk" ]; then
@ -260,11 +270,7 @@ elif [ "${var_pw_vulkan}" = "dxvk" ]; then
for wine_dxvk_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 dxgi ; do
try_copy_file "${PW_VULKAN_DLL}/dxvk/x32/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/"
try_copy_file "${PW_VULKAN_DLL}/dxvk/x64/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/"
if [ ! -z "${WINEDLLOVERRIDES}" ] ; then
export WINEDLLOVERRIDES="${wine_dxvk_dll}=n;${WINEDLLOVERRIDES}"
else
export WINEDLLOVERRIDES="${wine_dxvk_dll}=n"
fi
[ "$?" == 0 ] && var_winedlloverride_update "${wine_dxvk_dll}=n"
done
echo "Use DXVK (DX9-DX11 to Vulkan)"
else
@ -274,27 +280,24 @@ else
for wine_vkd3d_dll in d3d12 ; do
try_copy_file "${PW_VULKAN_DLL}/vkd3d-proton/x86/${wine_vkd3d_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/"
try_copy_file "${PW_VULKAN_DLL}/vkd3d-proton/x64/${wine_vkd3d_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/"
if [ ! -z "${WINEDLLOVERRIDES}" ] ; then
export WINEDLLOVERRIDES="${wine_vkd3d_dll}=n;${WINEDLLOVERRIDES}"
else
export WINEDLLOVERRIDES="${wine_vkd3d_dll}=n"
fi
[ "$?" == 0 ] && var_winedlloverride_update "${wine_vkd3d_dll}=n"
done
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 PW_WINDOWS_VER="10"
echo "Use VKD3D (DX12 to vulkan)"
fi
try_copy_file "${PW_VULKAN_DLL}/dxvk/x32/dxvk_config.dll" "${WINEPREFIX}/drive_c/windows/syswow64/"
try_copy_file "${PW_VULKAN_DLL}/dxvk/x64/dxvk_config.dll" "${WINEPREFIX}/drive_c/windows/system32/"
[ "$?" == 0 ] && var_winedlloverride_update "dxvk_config.dll=n"
export WINELOADER="${WINEDIR}/bin/wine"
export WINEDLLPATH="${WINEDIR}/lib64/wine:${WINEDIR}/lib/wine"
export WINESERVER="${WINEDIR}/bin/wineserver"
if [ ! -z "${PATH}" ] ; then
export PATH="${WINEDIR}/bin:${PATH}"
else
export PATH="${WINEDIR}/bin"
if [ ! -z "${PATH}" ]
then export PATH="${WINEDIR}/bin:${PATH}"
else export PATH="${WINEDIR}/bin"
fi
export WINE="${WINELOADER}"
@ -310,11 +313,12 @@ try_copy_file "${WINEDIR}/share/fonts/"LiberationSerif-Regular.ttf "${WINEPREFIX
try_copy_file "${WINEDIR}/share/fonts/"LiberationMono-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"cour.ttf
try_copy_file "${WINEDIR}/share/fonts/"SourceHanSansSCRegular.otf "${WINEPREFIX}/drive_c/windows/Fonts/"msyh.ttf
for wine_build_dll in ntdll mf mf3216 mferror mfmediaengine mfplat mfplay mfreadwrite vulkan-1 ; do
for wine_build_dll in ntdll mf mf3216 mferror mfmediaengine mfplat mfplay mfreadwrite vulkan-1 ; do #sqmapi msmpeg2vdec msmpeg2adec colorcnv
try_copy_file "${WINEDIR}/lib/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/"
try_copy_file "${WINEDIR}/lib64/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/"
[ "$?" == 0 ] && var_winedlloverride_update "${wine_build_dll}=b"
done
export WINEDLLOVERRIDES="mf,mf3216,mferror,mfmediaengine,mfplat,mfplay,mfreadwrite=b;steam_api,steam_api64,steamclient,steamclient64=n;${WINEDLLOVERRIDES}"
var_winedlloverride_update "vstdlib_s,tier0_s,steam,steam2,steam_api,steam_api64,steamclient,steamclient64=n"
export GST_PLUGIN_SYSTEM_PATH_1_0="${WINEDIR}/lib64/gstreamer-1.0:${WINEDIR}/gstreamer-1.0"
export WINE_GST_REGISTRY_DIR="${PORT_WINE_TMP_PATH}"
export MEDIACONV_AUDIO_DUMP_FILE="${PORT_WINE_TMP_PATH}"/audio.foz
@ -337,10 +341,9 @@ fi
#default wine-mono override for FNA games
export WINE_MONO_OVERRIDES="Microsoft.Xna.Framework.*,Gac=n"
if [ ! -z "${PW_NO_ESYNC}" ] && [ "${PW_NO_ESYNC}" != 0 ] ; then
export WINEESYNC=""
else
export WINEESYNC="1"
if [ ! -z "${PW_NO_ESYNC}" ] && [ "${PW_NO_ESYNC}" != 0 ]
then export WINEESYNC=""
else export WINEESYNC="1"
fi
if [ ! -z "${PW_NO_FSYNC}" ] && [ "${PW_NO_FSYNC}" != 0 ] ; then
export WINEFSYNC=""
@ -363,11 +366,10 @@ if [ ! -z "${PW_DXVK_NO_ASYNC}" ] && [ "${PW_DXVK_NO_ASYNC}" != 0 ] ; then
export RADV_DEBUG="llvm"
fi
if [ ! -z "${PW_NVAPI_DISABLE}" ] && [ "${PW_NVAPI_DISABLE}" != 0 ] ; then
export WINEDLLOVERRIDES="nvapi,nvapi64=;${WINEDLLOVERRIDES}"
var_winedlloverride_update "nvapi,nvapi64="
fi
if [ ! -z "${PW_WINEDBG_DISABLE}" ] && [ "${PW_WINEDBG_DISABLE}" != 0 ] ; then
export WINEDLLOVERRIDES="winedbg.exe=;${WINEDLLOVERRIDES}"
var_winedlloverride_update "winedbg.exe="
fi
if [ ! -z "${PW_HIDE_NVIDIA_GPU}" ] && [ "${PW_HIDE_NVIDIA_GPU}" != 0 ] ; then
export WINE_HIDE_NVIDIA_GPU="1"
@ -375,9 +377,8 @@ fi
if [ ! -z "${PW_VKD3D_FEATURE_LEVEL}" ] && [ "${PW_VKD3D_FEATURE_LEVEL}" != 0 ] ; then
export VKD3D_FEATURE_LEVEL="12_0"
fi
if [ ! -d "${PORT_WINE_TMP_PATH}"/dxvk_cache ] ; then
mkdir -p "${PORT_WINE_TMP_PATH}"/dxvk_cache
fi
create_new_dir "${PORT_WINE_TMP_PATH}/dxvk_cache"
export DXVK_STATE_CACHE_PATH="${PORT_WINE_TMP_PATH}"/dxvk_cache
export DXVK_STATE_CACHE=1
export STAGING_SHARED_MEMORY=1
@ -471,15 +472,18 @@ PW_STOP_PROGRESS_BAR
UPDATE_WINETRICKS () {
W_TRX_URL="https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"
W_TRX_EXT_VER="$(curl --connect-timeout 2 -s --list-only ${W_TRX_URL} | grep -i 'WINETRICKS_VERSION=' | sed 's/WINETRICKS_VERSION=//')"
W_TRX_EXT_VER="$(curl -s --list-only ${W_TRX_URL} | grep -i 'WINETRICKS_VERSION=' | sed 's/WINETRICKS_VERSION=//')"
print_info "Version winetricks on server: ${W_TRX_EXT_VER}"
if [ ! -f "${PORT_WINE_TMP_PATH}/winetricks" ] ; then
try_download "${W_TRX_URL}" "${PORT_WINE_TMP_PATH}/winetricks"
chmod u+x "${PORT_WINE_TMP_PATH}/winetricks"
else
W_TRX_INT_VER="$(cat "${PORT_WINE_TMP_PATH}/winetricks" | grep -i 'WINETRICKS_VERSION=' | sed 's/WINETRICKS_VERSION=//')"
print_info "Version winetricks in port: ${W_TRX_EXT_VER}"
if [ $W_TRX_INT_VER != $W_TRX_EXT_VER ] ; then
rm -f "${PORT_WINE_TMP_PATH}/winetricks"
try_download "${W_TRX_URL}" "${PORT_WINE_TMP_PATH}/winetricks"
[ "$?" == 0 ] && print_info "Winetricks version in port has been updated"
chmod u+x "${PORT_WINE_TMP_PATH}/winetricks"
fi
fi #modded by Cefeiko
@ -638,17 +642,24 @@ if [ ! -z "$portwine_exe" ] ; then
else
cd "${WINEPREFIX}/drive_c"
fi
print_var "PATH_TO_GAME" "WINEDLLOVERRIDES" "PATH"
if [ ! -z "${PW_GAMEMODERUN}" ] && [ "${PW_GAMEMODERUN}" != 0 ] ; then
if [ ! -z ${optirun_on} ]; then
${optirun_on} $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}
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[*]}
else
$PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}
echo "Full command line: $PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
$PW_TERM "${PW_RUNTIME}" gamemoderun "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}
fi
else
if [ ! -z ${optirun_on} ]; then
${optirun_on} $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}
echo "Full command line: ${optirun_on} $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
${optirun_on} $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}
else
$PW_TERM "${PW_RUNTIME}" "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}
echo "Full command line: $PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}"
$PW_TERM "${PW_RUNTIME}" "${WINELOADER}" explorer "$@" ${LAUNCH_PARAMETERS[*]}
fi
fi
}

@ -5,9 +5,8 @@ if [ -f "$1" ]; then
fi
. "$(dirname $(readlink -f "$0"))/runlib"
PW_SCRIPTS_UPDATE
########################################################################
PORTWINE_LAUNCH ()
{
PORTWINE_LAUNCH () {
KILL_PORTWINE
START_PORTWINE
PORTWINE_MSI=`basename "${portwine_exe}" | grep .msi`
@ -29,9 +28,7 @@ else
PW_RUN "${gamestart}"
fi
}
########################################################################
PORTWINE_CREATE_SHORTCUT ()
{
PORTWINE_CREATE_SHORTCUT () {
if [ ! -z "${portwine_exe}" ]; then
PORTPROTON_EXE="${portwine_exe}"
else
@ -80,9 +77,7 @@ if [ $? -eq "0" ]; then
fi
xdg-open "${PORT_WINE_PATH}" 2>1 >/dev/null &
}
########################################################################
PORTWINE_DEBUG ()
{
PORTWINE_DEBUG () {
KILL_PORTWINE
export PW_LOG=1
export PW_WINEDBG_DISABLE=0
@ -152,13 +147,13 @@ if [ ! -z "${portwine_exe}" ]; then
export PATH_TO_GAME="$( cd "$( dirname "${portwine_exe}" )" >/dev/null 2>&1 && pwd )"
cd "$PATH_TO_GAME"
if [ ! -z ${optirun_on} ]; then
$PW_XTERM "${WINELOADER}" ${optirun_on} "$portwine_exe" ${LAUNCH_PARAMETERS} 2>&1 &
${optirun_on} $PW_XTERM "${WINELOADER}" explorer "$portwine_exe" ${LAUNCH_PARAMETERS} 2>&1 &
else
$PW_XTERM "${WINELOADER}" "$portwine_exe" ${LAUNCH_PARAMETERS} 2>&1 &
$PW_XTERM "${WINELOADER}" explorer "$portwine_exe" ${LAUNCH_PARAMETERS} 2>&1 &
fi
elif [ -z "${gamestart}" ]; then
if [ ! -z $optirun_on ]; then
$PW_XTERM "${WINELOADER}" ${optirun_on} explorer 2>&1 &
${optirun_on} $PW_XTERM "${WINELOADER}" explorer 2>&1 &
else
$PW_XTERM "${WINELOADER}" explorer 2>&1 &
fi
@ -166,9 +161,9 @@ else
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}" "${gamestart}" ${LAUNCH_PARAMETERS} 2>&1 &
${optirun_on} $PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" explorer "${gamestart}" ${LAUNCH_PARAMETERS} 2>&1 &
else
$PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" "${gamestart}" ${LAUNCH_PARAMETERS} 2>&1 &
$PW_XTERM "${PW_RUNTIME}" "${WINELOADER}" explorer "${gamestart}" ${LAUNCH_PARAMETERS} 2>&1 &
fi
fi
@ -180,40 +175,29 @@ deb_text=$(cat "${PORT_WINE_PATH}/${portname}.log" | awk '! a[$0]++')
echo "$deb_text" > "${PORT_WINE_PATH}/${portname}.log"
echo "$deb_text" | zenity --text-info --editable --width=800 --height=600 --title="${portname}.log"
}
########################################################################
PW_WINECFG ()
{
PW_WINECFG () {
START_PORTWINE
PW_RUN winecfg
}
########################################################################
PW_WINEFILE ()
{
PW_WINEFILE () {
START_PORTWINE
PW_RUN "explorer"
}
########################################################################
PW_WINECMD ()
{
PW_WINECMD () {
export PW_USE_TERMINAL=1
START_PORTWINE
PW_RUN "cmd"
}
########################################################################
PW_WINEREG ()
{
PW_WINEREG () {
START_PORTWINE
PW_RUN "regedit"
}
########################################################################
PW_WINETRICKS ()
{
PW_WINETRICKS () {
UPDATE_WINETRICKS
export PW_USE_TERMINAL=1
START_PORTWINE
$PW_TERM "${PW_RUNTIME}" "${PORT_WINE_TMP_PATH}/winetricks" -q --force
}
########################################################################
if [ ! -z "${portwine_exe}" ]; then
if [ -z "${PW_GUI_DISABLED_CS}" ] || [ "${PW_GUI_DISABLED_CS}" = 0 ] ; then
if [ ! -z "${PORTWINE_DB_FILE}" ] && [ ! -z "${PW_VULKAN_USE}" ]; then