forked from CastroFidel/PortWINE
53 lines
1.6 KiB
Bash
Executable File
53 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# License GPL
|
|
# Author: Tergoev M.A.
|
|
########################################################################
|
|
export portname=""
|
|
export gamename=""
|
|
export gamedir=""
|
|
export porturl="http://portwine-linux.ru/"
|
|
export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}"
|
|
export gamestart="${PATH_TO_GAME}/.exe"
|
|
########################################################################
|
|
export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
|
|
export STAGING_SHARED_MEMORY=1
|
|
export PROTON_FORCE_LARGE_ADDRESS_AWARE=0
|
|
export PROTON_USE_SECCOMP=0
|
|
export WINEDLLOVERRIDES="winemenubuilder.exe=d"
|
|
export WINEDEBUG="-all"
|
|
export kill_winedevice=0
|
|
export kill_explorer=0
|
|
export PORTWINE_ACO=0
|
|
########################################################################
|
|
ADD_IN_START_PORTWINE ()
|
|
{
|
|
if [ "${var_dxvk_on}" -eq "0" ]
|
|
then ###OPENGL###
|
|
export PROTON_USE_WINED3D=1
|
|
export PROTON_USE_VKD3D=0
|
|
export PROTON_NO_D9VK=1
|
|
export PROTON_NO_D3D11=0
|
|
export PROTON_NO_D3D10=0
|
|
export PROTON_OLD_GL_STRING=0
|
|
else ###DXVK###
|
|
export PROTON_USE_WINED3D=0
|
|
export PROTON_USE_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=""
|
|
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
|
|
}
|