-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_ww.sh
More file actions
executable file
·29 lines (22 loc) · 1.02 KB
/
run_ww.sh
File metadata and controls
executable file
·29 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Proton 路径
PROTON_BIN="$HOME/.local/share/Steam/compatibilitytools.d/dwproton-10.0-14/proton"
# 游戏路径
GAME_EXE="$HOME/share/WutheringWaves/Wuthering Waves bilibili/Wuthering Waves Game/Client/Binaries/Win64/Client-Win64-Shipping.exe"
# steam 游戏目录路径
export STEAM_COMPAT_DATA_PATH="$HOME/.local/share/Steam/steamapps/compatdata/3139039821"
export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.local/share/Steam"
# 环境变量
export STEAMDESK=1
# 用于帧率显示(sudo pacman -S mangohud 安装)
export MANGOHUD=1
# 定义 Steam 内部自带的 Runtime 脚本路径
STEAM_RUNTIME_SCRIPT="$HOME/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh"
echo "正在启动鸣潮 (使用 Steam Internal Runtime)..."
# 检查脚本是否存在,存在则使用,不存在则裸奔
if [ -f "$STEAM_RUNTIME_SCRIPT" ]; then
"$STEAM_RUNTIME_SCRIPT" gamemoderun "$PROTON_BIN" run "$GAME_EXE"
else
echo "警告:未找到 Steam Runtime,过场动画可能黑屏"
gamemoderun "$PROTON_BIN" run "$GAME_EXE"
fi