Commit dca84f26 authored by Boria138's avatar Boria138

Fixed gamemode and update prime render offload

parent 4bb06820
...@@ -159,8 +159,7 @@ start_portwine () { ...@@ -159,8 +159,7 @@ start_portwine () {
fi fi
if [[ "${PW_PRIME_RENDER_OFFLOAD}" == 1 ]] ; then if [[ "${PW_PRIME_RENDER_OFFLOAD}" == 1 ]] ; then
if [[ ! -z $(command -v glxinfo) ]] \ if ${PW_WINELIB}/portable/bin/inxi -Gc0 | grep "renderer" | grep -i "nvidia" ;
&& [[ ! -z $(glxinfo -B | grep "OpenGL renderer" | grep -i "nvidia") ]]
then then
print_debug "Nvidia used by default. Force disabled PRIME_RENDER_OFFLOAD" print_debug "Nvidia used by default. Force disabled PRIME_RENDER_OFFLOAD"
export __NV_PRIME_RENDER_OFFLOAD=0 export __NV_PRIME_RENDER_OFFLOAD=0
...@@ -220,7 +219,7 @@ start_portwine () { ...@@ -220,7 +219,7 @@ start_portwine () {
print_info "Gamemod will be launched." print_info "Gamemod will be launched."
else else
export GAMEMODERUN=0 export GAMEMODERUN=0
echo "Gamemod is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE" print_info "Gamemod is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE"
fi fi
pw_other_fixes pw_other_fixes
......
...@@ -180,10 +180,10 @@ portwine_start_debug () { ...@@ -180,10 +180,10 @@ portwine_start_debug () {
fi fi
echo "----------------------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" echo "----------------------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log"
echo "GameMode status:" >> "${PORT_WINE_PATH}/${portname}.log" echo "GameMode status:" >> "${PORT_WINE_PATH}/${portname}.log"
if gamemoded -s | grep -q "active"; if gamemoded -s | grep "is active";
then then
echo "gamemode is active" >> "${PORT_WINE_PATH}/${portname}.log" echo "gamemode is active" >> "${PORT_WINE_PATH}/${portname}.log"
elif gamemoded -s | grep -q "inactive"; elif gamemoded -s | grep "is inactive";
then then
echo "gamemode is inactive" >> "${PORT_WINE_PATH}/${portname}.log" echo "gamemode is inactive" >> "${PORT_WINE_PATH}/${portname}.log"
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment