forked from CastroFidel/PortWINE
		
	Fix xfce4-terminal and add all vars in git.
This commit is contained in:
		| @@ -1,12 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| . "$(dirname $(readlink -f "$0"))/runlib" | ||||
| ########################################################## | ||||
| rm -f "${PORT_WINE_PATH}/data/version" | ||||
| rm -f "${PORT_WINE_PATH}/data/"*.lock | ||||
| rm -fr "${PORT_WINE_PATH}/data/__pycache__" | ||||
| rm -fr "${PORT_WINE_PATH}/data/pfx/dosdevices" | ||||
| rm -fr "${PORT_WINE_PATH}/data/dive_c/windows/Installer/"* | ||||
| rm -fr "${PORT_WINE_PATH}/data/dive_c/windows/temp/"* | ||||
| rm -fr "${PORT_WINE_PATH}/data/dive_c/users/steamuser/Local Settings/Temporary Internet Files/"* | ||||
| rm -fr "${PORT_WINE_PATH}/data/dive_c/users/steamuser/Temp/"* | ||||
| @@ -16,7 +16,7 @@ echo "Date and time of start debug for ${portname}" >> "${PORT_WINE_PATH}/${port | ||||
| date >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "-----------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "The installation path of the ${portname}:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "$link" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "$PORT_WINE_PATH" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "----------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "Operating system" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| lsb_release -d | sed s/Description/ОС/g >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|   | ||||
| @@ -15,8 +15,10 @@ cd "$(dirname "`readlink -f "$0"`")" | ||||
| export PORT_SCRIPTS_PATH="$(pwd)" | ||||
| cd "${PORT_SCRIPTS_PATH}/../../" | ||||
| export PORT_WINE_PATH="$(pwd)" | ||||
| read "portname" < "${PORT_WINE_PATH}/data/tmp/portname" | ||||
| export portname | ||||
| cd "${PORT_SCRIPTS_PATH}" | ||||
| . "${PORT_SCRIPTS_PATH}"/vars | ||||
| . "${PORT_SCRIPTS_PATH}/vars/${portname}_vars" | ||||
| ######################################################################## | ||||
| export config_path="${PORT_WINE_PATH}/data/tmp" | ||||
| if [ ! -d "${config_path}" ]; then | ||||
| @@ -51,18 +53,21 @@ export WINESTART="C:\\windows\\command\\start.exe" | ||||
| export PW_COMPAT_DATA_PATH="${PORT_WINE_PATH}/data/" | ||||
| export PW_COMPAT_MEDIA_PATH="${PW_COMPAT_MEDIA_PATH}" | ||||
| ######################################################################## | ||||
| export urlg="http://portwine-linux.ru/donate" | ||||
| export urlg="https://portwine-linux.ru/portwine-faq/" | ||||
| export PW_FTP_URL="https://portwine-linux.ru/ftp" | ||||
| ######################################################################## | ||||
| export PW_TERM="" | ||||
| if [ "${PW_USE_TERMINAL}" = "1"  ]; then | ||||
|     if [ -x "`which konsole 2>/dev/null`" ]; then | ||||
|         export PW_TERM="konsole -e" | ||||
|     elif [ -x "`which xfce4-terminal 2>/dev/null`" ]; then | ||||
|         export PW_TERM="xfce4-terminal -e" | ||||
|         export PW_TERM="xfce4-terminal -x" | ||||
|     elif [ -x "`which xterm 2>/dev/null`" ]; then | ||||
|         export PW_TERM="xterm -e" | ||||
|     elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then | ||||
|         export PW_TERM="gnome-terminal -- $SHELL -c"  | ||||
|     elif [ -x "`which lxterminal 2>/dev/null`" ]; then | ||||
|         export PW_TERM="lxterminal -e"  | ||||
|     fi | ||||
| fi | ||||
| ######################################################################## | ||||
| @@ -72,7 +77,7 @@ sh "${PORT_SCRIPTS_PATH}"/port_update | ||||
| echo "########################" | ||||
| if [ ! -d "${WINELIB}" ]; then  | ||||
|     echo "Download and install libraries..." | ||||
|     wget -T 2 --output-document="${HOME}/.PortWINE/tmp/libs.tar.xz" http://pubrepo.sllc.cloud/k1/files/dist/libs.tar.xz | sszen && | ||||
|     wget -T 2 --output-document="${HOME}/.PortWINE/tmp/libs.tar.xz" "${PW_FTP_URL}"/dist/libs.tar.xz | sszen && | ||||
|     tar -Jxvf "${HOME}/.PortWINE/tmp/libs.tar.xz" -C "${HOME}/.PortWINE/" | sszen && | ||||
|     rm -f "${HOME}/.PortWINE/tmp/libs.tar.xz" | ||||
| fi | ||||
| @@ -144,10 +149,12 @@ echo "DXVK_HUD=${DXVK_HUD}" | ||||
|  | ||||
| if [ "${var_dxvk_on}" != "off" ]; then | ||||
|     export PW_USE_WINED3D=0 | ||||
|     echo "Use DXVK and D9VK (DX9-DX11 to Vulkan)"  | ||||
|     echo "Use DXVK and D9VK (DX9-DX11 to Vulkan)" | ||||
|     export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| else | ||||
|     export PW_USE_WINED3D=1 | ||||
|     echo "Use OpenGL and VKD3D (DX9-DX11 to OpenGL and DX12 to vulkan)"  | ||||
|     export PW_VKD3D_FEATURE_LEVEL=1 | ||||
| fi | ||||
|  | ||||
| export DXVK_STATE_CACHE_PATH="${PATH_TO_GAME}" | ||||
| @@ -203,6 +210,10 @@ if [ $(pgrep xneur)>'0' ]; then | ||||
| 	killall xneur | ||||
| 	export int_xneur=1 | ||||
| fi  | ||||
| export PW_XKBD="$(setxkbmap -query | grep -w ru | awk '{print($2)}')" | ||||
| if [ ! -z ${PW_XKBD} ]; then | ||||
|     setxkbmap us,ru | ||||
| fi | ||||
| ######################################################################## | ||||
| if [ -x "`which "gamemoderun" 2>/dev/null`" ] && [ "$PW_FORCE_DISABLED_GAMEMOD" -eq "0" ]; then | ||||
|     systemctl --user enable gamemoded.service  | ||||
| @@ -227,11 +238,14 @@ done | ||||
| ######################################################################## | ||||
| STOP_PORTWINE () | ||||
| { | ||||
| #WAIT_WINESERVER | ||||
| WAIT_WINESERVER | ||||
| ADD_IN_STOP_PORTWINE | ||||
| if [ "$int_xneur" = "1"  ]; then | ||||
| 	xneur & | ||||
| fi | ||||
| if [ ! -z ${PW_XKBD} ]; then | ||||
|     setxkbmap ${PW_XKBD} | ||||
| fi | ||||
| #killall -r -s9 winedevice  | ||||
| rm -f "${PORT_WINE_PATH}"/0 | ||||
| rm -f "${PORT_SCRIPTS_PATH}"/0 | ||||
|   | ||||
| @@ -5,20 +5,12 @@ | ||||
| rm -f "${PORT_WINE_PATH}/"*".log"  | ||||
| rm -f "${PORT_WINE_PATH}/data/"*".lock" | ||||
|  | ||||
| if [ -f "${PORT_WINE_PATH}/data/version" ]; then | ||||
| rm -f "${PORT_WINE_PATH}/data/version" | ||||
| fi | ||||
|  | ||||
| rm -f "${config_path}/update_notifier" | ||||
|  | ||||
| if [ -d "${PORT_WINE_PATH}/data/__pycache__" ]; then | ||||
| 	rm -fr "${PORT_WINE_PATH}/data/__pycache__" | ||||
| fi | ||||
|  | ||||
| if [ -d "${PORT_WINE_PATH}/data/pfx/dosdevices" ]; then | ||||
| 	rm -fr "${PORT_WINE_PATH}/data/pfx/dosdevices" | ||||
| fi | ||||
|  | ||||
| if [ ! -d "/home/${USER}/.local/share/applications" ] | ||||
| then | ||||
| 	mkdir -p "/home/${USER}/.local/share/applications" | ||||
|   | ||||
							
								
								
									
										57
									
								
								data_from_portwine/scripts/vars/PortBattleNET_vars
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										57
									
								
								data_from_portwine/scripts/vars/PortBattleNET_vars
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,57 @@ | ||||
| #!/bin/bash | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export gamedir="Battle.net" | ||||
| export gamename="Battle.net" | ||||
| export portname="PortBattleNET" | ||||
| export porturl="http://portwine-linux.ru/battle-net-linux/" | ||||
| if [ ! -z ${gamedir} ]; then | ||||
|     export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}" | ||||
| fi | ||||
| export gamestart="${PATH_TO_GAME}/Battle.net Launcher.exe" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export STAGING_SHARED_MEMORY=1 | ||||
| export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_NO_VR=1           # Disabled VR support  | ||||
| export PW_NO_D3D9=0         # Disable d3d9.dll | ||||
| export PW_NO_D3D10=0        # Disable d3d10.dll, for d3d10 games which can fall back to and run better with d3d9 | ||||
| export PW_NO_D3D11=0        # Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9 | ||||
| export PW_NO_D3D12=0        # Disable d3d12.dll, for d3d12 games which can fall back to and run better with d3d11 or d3d9 | ||||
| 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_ASYNC=0 | ||||
| export PW_DXGI_NATIVE=0 | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NO_WINEMFPLAY=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=0 | ||||
| export PW_PULSE_LOWLATENCY=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. | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export launch_parameters="" | ||||
| cd "${PATH_TO_GAME}" | ||||
| rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/ProgramData/Agent/data" | ||||
| rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/Blizzard Entertainment/Battle.net/Cache" | ||||
| rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public/Blizzard Entertainment/Battle.net/Cache" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| rm -f "${PORT_WINE_PATH}/data/pfx/drive_c/ProgramData/Battle.net/Agent/product.db" | ||||
| `zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1   | ||||
| } | ||||
							
								
								
									
										51
									
								
								data_from_portwine/scripts/vars/PortEpic_vars
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										51
									
								
								data_from_portwine/scripts/vars/PortEpic_vars
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,51 @@ | ||||
| #!/bin/bash | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export portname="PortEpic" | ||||
| export gamename="Epic_Games" | ||||
| export gamedir="Epic Games/Launcher/Portal/Binaries/Win32/" | ||||
| export porturl="http://portwine-linux.ru/epic-games-linux/" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/EpicGamesLauncher.exe" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export STAGING_SHARED_MEMORY=1 | ||||
| export PROTON_FORCE_LARGE_ADDRESS_AWARE=1 | ||||
| export PROTON_USE_SECCOMP=0 | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export WINEDEBUG="-all" | ||||
| export PORTWINE_ACO=0 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| if [ "${var_dxvk_on}" -eq "0" ] | ||||
| then        ###OPENGL### | ||||
|     export PROTON_USE_WINED3D=1 | ||||
|     export PW_DXGI_FOR_VKD3D=1 | ||||
|     export PROTON_NO_D9VK=0 | ||||
|     export PROTON_NO_D3D11=0 | ||||
|     export PROTON_NO_D3D10=0 | ||||
|     export PROTON_OLD_GL_STRING=0 | ||||
| else        ###DXVK### | ||||
|     export PROTON_USE_WINED3D=0 | ||||
|     export PW_DXGI_FOR_VKD3D=0 | ||||
|     export PROTON_NO_D9VK=0 | ||||
|     export PROTON_NO_D3D11=0 | ||||
|     export PROTON_NO_D3D10=0 | ||||
|     export DXVK_ASYNC=0 | ||||
| fi | ||||
| export launch_parameters="-opengl -SkipBuildPatchPrereq" | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| `zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1   | ||||
| } | ||||
|  | ||||
							
								
								
									
										53
									
								
								data_from_portwine/scripts/vars/PortGOG_vars
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										53
									
								
								data_from_portwine/scripts/vars/PortGOG_vars
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| #!/bin/bash | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export portname="PortGoG" | ||||
| export gamename="GOG Galaxy" | ||||
| export gamedir="GOG Galaxy" | ||||
| export porturl="http://portwine-linux.ru/" | ||||
| if [ ! -z "${gamedir}" ]; then | ||||
|     export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}" | ||||
| fi | ||||
| export gamestart="${PATH_TO_GAME}/GalaxyClient.exe" | ||||
| ######################################################################## | ||||
| export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export STAGING_SHARED_MEMORY=1 | ||||
| export PW_LOG=1             # Enable debug mode fo terminal  | ||||
| export PW_NO_VR=1           # Disabled VR support  | ||||
| export PW_NO_D3D9=0         # Disable d3d9.dll | ||||
| export PW_NO_D3D10=0        # Disable d3d10.dll, for d3d10 games which can fall back to and run better with d3d9 | ||||
| export PW_NO_D3D11=0        # Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9 | ||||
| export PW_NO_D3D12=0        # Disable d3d12.dll, for d3d12 games which can fall back to and run better with d3d11 or d3d9 | ||||
| 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_ASYNC=0 | ||||
| export PW_DXGI_NATIVE=0 | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NO_WINEMFPLAY=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_PULSE_LOWLATENCY=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. | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export launch_parameters="" | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| `zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1   | ||||
| } | ||||
							
								
								
									
										58
									
								
								data_from_portwine/scripts/vars/PortLoL_vars
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										58
									
								
								data_from_portwine/scripts/vars/PortLoL_vars
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| #!/bin/bash | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export portname="PortLoL" | ||||
| export gamename="League_of_Legends" | ||||
| export gamedir="Riot Games/Riot Client" | ||||
| export porturl="http://portwine-linux.ru/league-of-legends-linux/" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/RiotClientServices.exe" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export STAGING_SHARED_MEMORY=1 | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export PW_LOG=0 | ||||
| export PW_ACO=1 | ||||
| export PW_NO_VR=1 | ||||
| export PW_NO_FSYNC=1 | ||||
| export PW_NO_ESYNC=1 | ||||
| export PW_FILELOCK=1 | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_DXGI_NATIVE=0 | ||||
| export PW_USE_SECCOMP=0 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=1 | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_PULSE_LOWLATENCY=0 | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=0 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export launch_parameters="--launch-product=league_of_legends --launch-patchline=live" | ||||
| cd "${PATH_TO_GAME}" | ||||
|  | ||||
| if [ "$(cat /proc/sys/abi/vsyscall32)" -ne 0 ] | ||||
| then | ||||
|     zenity --question --title="Fix for LoL anti-cheat" \ | ||||
|            --text='Root rights are required to execute the command:           \n"sysctl -w abi.vsyscall32=0" and "sysctl -p"' --no-wrap | ||||
|     if [ "$?" = 1 ] | ||||
|     then | ||||
|         exit 0 | ||||
|     fi | ||||
|     pkexec sh -c 'sysctl -w abi.vsyscall32=0 && sysctl -p' | ||||
| fi | ||||
| sh "${PORT_SCRIPTS_PATH}"/fix_start_lol.sh | zenity --progress --title="Start PortLoL" --text="Please wait, launch is in progress, it may take few minutes" --pulsate --auto-close --auto-kill --width=450 & | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| `zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1   | ||||
| } | ||||
|  | ||||
							
								
								
									
										44
									
								
								data_from_portwine/scripts/vars/PortMailRu_vars
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										44
									
								
								data_from_portwine/scripts/vars/PortMailRu_vars
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| #!/bin/bash | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export portname="PortMailRu" | ||||
| export gamename="GameMailRu" | ||||
| export gamedir="GameCenter" | ||||
| export porturl="http://portwine-linux.ru/mail-ru-linux" | ||||
| if [ ! -z "${gamedir}" ]; then | ||||
|     export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/Local Settings/Application Data/${gamedir}" | ||||
| fi | ||||
| export gamestart="${PATH_TO_GAME}/GameCenter.exe" | ||||
| ######################################################################## | ||||
| export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export STAGING_SHARED_MEMORY=0 | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export PW_LOG=0 | ||||
| export PW_ACO=1 | ||||
| export PW_NO_VR=1 | ||||
| export PW_FILELOCK=1 | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_USE_SECCOMP=1 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=1 | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_PULSE_LOWLATENCY=1 | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=1 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export launch_parameters="" | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| `zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1   | ||||
| } | ||||
| @@ -2,7 +2,6 @@ | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export portname=PortProton | ||||
| export gamename= | ||||
| export gamedir= | ||||
| if [ ! -z "${gamedir}" ]; then | ||||
| @@ -24,7 +23,6 @@ export PW_NO_FSYNC=0        # Do not use futex-based in-process synchronization | ||||
| export PW_NO_ESYNC=0        # Do not use eventfd-based in-process synchronization primitives | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_DXGI_NATIVE=0 | ||||
| export PW_USE_SECCOMP=0         #Note: Obsoleted in Proton 5.13. In older versions, enable seccomp-bpf filter to emulate native syscalls, required for some DRM protections to work. | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| @@ -34,7 +32,6 @@ 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_PULSE_LOWLATENCY=0 | ||||
| export PW_VKD3D_FEATURE_LEVEL=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. | ||||
| ######################################################################## | ||||
							
								
								
									
										56
									
								
								data_from_portwine/scripts/vars/PortWGC_vars
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										56
									
								
								data_from_portwine/scripts/vars/PortWGC_vars
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| #!/bin/bash | ||||
| # License GPL | ||||
| # Author: Tergoev M.A. | ||||
| ######################################################################## | ||||
| export gamedir="WGC" | ||||
| export gamename="WGC" | ||||
| export portname="PortWGC" | ||||
| export porturl="http://portwine-linux.ru/port-wargaming-game-center/" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Games/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/wgc.exe" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export STAGING_SHARED_MEMORY=1 | ||||
| export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_NO_VR=1           # Disabled VR support  | ||||
| export PW_NO_D3D9=0         # Disable d3d9.dll | ||||
| export PW_NO_D3D10=0        # Disable d3d10.dll, for d3d10 games which can fall back to and run better with d3d9 | ||||
| export PW_NO_D3D11=0        # Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9 | ||||
| export PW_NO_D3D12=0        # Disable d3d12.dll, for d3d12 games which can fall back to and run better with d3d11 or d3d9 | ||||
| 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_ASYNC=0 | ||||
| export PW_DXGI_NATIVE=0 | ||||
| export PW_USE_TERMINAL=1 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NO_WINEMFPLAY=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_PULSE_LOWLATENCY=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. | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export launch_parameters="" | ||||
| cd "${PATH_TO_GAME}" | ||||
| sed -i 's/true/false/g' "${PORT_WINE_PATH}/data/pfx/drive_c/Games/WGC/preferences.xml" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| if [ "${update_loc}" = "ENG" ]; then | ||||
|     sed -i 's/RU/EN/g' "${PORT_WINE_PATH}/data/pfx/drive_c/Games/WGC/preferences.xml" | ||||
|     sed -i 's/ru/en/g' "${PORT_WINE_PATH}/data/pfx/drive_c/Games/WGC/preferences.xml" | ||||
| fi | ||||
| `zenity --info --title "${inst_set_top}" --text "${inst_succ}" --no-wrap ` > /dev/null 2>&1   | ||||
| } | ||||
| @@ -21,7 +21,7 @@ echo "Date and time of start debug for ${portname}" >> "${PORT_WINE_PATH}/${port | ||||
| date >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "-----------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "The installation path of the ${portname}:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "$link" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "$PORT_WINE_PATH" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "----------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| echo "Operating system" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| lsb_release -d | sed s/Description/ОС/g >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user