diff --git a/data_from_portwine/scripts/debug b/data_from_portwine/scripts/debug index a3004f3..ea31320 100755 --- a/data_from_portwine/scripts/debug +++ b/data_from_portwine/scripts/debug @@ -72,9 +72,9 @@ export WINE_MONO_TRACE="E:System.NotImplementedException" #"/usr/bin/xterm" -geometry 130x13 -sb -e 'echo "--------------------------------------------------------PORTWINE-LINUX.RU--------------------------------------------------------" && "${PROTONRUN}" "run" "${gamestart}" "${launch_parameters}" &>> "${PORT_WINE_PATH}/${portname}.log"' if [ ! -z ${optirun_on} ] then - ${optirun_on} "${var_gamemode}" "${PROTONRUN}" "run" "${gamestart}" ${launch_parameters} >> "${PORT_WINE_PATH}/${portname}.log" 2>&1 + ${optirun_on} "${PROTONRUN}" "run" "${gamestart}" ${launch_parameters} >> "${PORT_WINE_PATH}/${portname}.log" 2>&1 else - "${var_gamemode}" "${PROTONRUN}" "run" "${gamestart}" ${launch_parameters} >> "${PORT_WINE_PATH}/${portname}.log" 2>&1 + "${PROTONRUN}" "run" "${gamestart}" ${launch_parameters} >> "${PORT_WINE_PATH}/${portname}.log" 2>&1 fi KILL9_WINEDEVICE | pwzen diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index 0405efc..f42dcdd 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -57,17 +57,6 @@ then fi read "var_dxvk_on" < "${config_path}/dxvk_on" export "var_dxvk_on" -if [ -x "`which "gamemoderun" 2>/dev/null`" ] -then - if [ ! -z "${LD_PRELOAD}" ] - then - export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0:${LD_PRELOAD}" - else - export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0" - fi -else - echo "Gamemod not installed!" -fi ######################################################################## WINEDIR="${PORT_WINE_PATH}"/data/dist WINELIB="${PORT_WINE_PATH}"/data/libs @@ -175,6 +164,17 @@ then killall xneur export int_xneur=1 fi +if [ -x "`which "gamemoderun" 2>/dev/null`" ] +then + if [ ! -z "${LD_PRELOAD}" ] + then + export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0:${LD_PRELOAD}" + else + export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0" + fi +else + echo "Gamemod not installed!" +fi ADD_IN_START_PORTWINE } ########################################################################