您尚未登录。

#1 2025-05-20 19:21:53

Five
会员
注册时间: 2022-07-09
帖子: 3

DOTA2 运行在原生 wayland 下的方法

编辑 $STEAMROOT/steamapps/common/dota 2 beta/game/dota.sh 第76行

# Set appropriate SDL video driver based on session type
if [ "$UNAME" == "Linux" ]; then
    if [ "$XDG_SESSION_TYPE" == "x11" ]; then
        export SDL_VIDEO_DRIVER=x11
    elif [ "$XDG_SESSION_TYPE" == "wayland" ]; then
        export SDL_VIDEO_DRIVER=wayland
        export SDL_AUDIO_DRIVER=pipewire
    fi
fi

最近编辑记录 Five (2025-05-20 19:22:37)

离线

#2 2025-05-20 19:25:37

Five
会员
注册时间: 2022-07-09
帖子: 3

Re: DOTA2 运行在原生 wayland 下的方法

export SDL_AUDIO_DRIVER=pipewire

这段看自己取舍

离线

页脚