Fix log and gamemode

This commit is contained in:
Castro-Fidel
2020-05-20 23:08:34 +03:00
parent 8692507ba9
commit fa40eae2b2
5 changed files with 262 additions and 59 deletions

View File

@ -11,12 +11,14 @@ export gamestart="${PATH_TO_GAME}/.exe"
########################################################################
#__NV_PRIME_RENDER_OFFLOAD=1
#__GLX_VENDOR_LIBRARY_NAME=nvidia
export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
#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 DXVK_LOG_LEVEL=none
export VKD3D_DEBUG=none
export kill_winedevice=0
export kill_explorer=0
########################################################################
@ -28,6 +30,7 @@ then ###OPENGL###
export vblank_mode=0
export __GL_SYNC_TO_VBLANK=0
export PROTON_USE_WINED3D=1
export PROTON_USE_VKD3D=0
export PROTON_USE_D9VK=0
export PROTON_NO_D3D11=0
export PROTON_NO_D3D10=0
@ -37,8 +40,8 @@ else ###DXVK###
export vblank_mode=1
export __GL_SYNC_TO_VBLANK=1
export PROTON_USE_WINED3D=0
export PROTON_USE_D9VK=1
# export PROTON_USE_VKD3D=0
export PROTON_USE_D9VK=0
export PROTON_USE_VKD3D=0
export PROTON_NO_D3D11=0
export PROTON_NO_D3D10=0
export PROTON_OLD_GL_STRING=0
@ -48,6 +51,9 @@ else ###DXVK###
fi
########################################################################
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 ()
@ -57,6 +63,6 @@ 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
}
########################################################################