-
Notifications
You must be signed in to change notification settings - Fork 13
/
run_game_hud.sh
executable file
·75 lines (63 loc) · 1.83 KB
/
run_game_hud.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
# Info
GAME_NAME="Serious Sam Classic (MangoHUD)"
# Directory
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Initialization
cd "${CURRENT_DIR}"
# Actions
run_option1() {
echo "Running ${option1}"
cd "./SamTFE/Bin"
export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
MANGOHUD_CONFIG="offset_y=75,offset_x=20,cpu_temp,gpu_temp,ram,vram,engine_version" mangohud --dlsym "./SeriousSam"
}
run_option2() {
echo "Running ${option2}"
cd "./SamTSE/Bin"
export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
MANGOHUD_CONFIG="offset_y=75,offset_x=20,cpu_temp,gpu_temp,ram,vram,engine_version" mangohud --dlsym "./SeriousSam"
}
run_option3() {
echo "Running ${option3}"
cd "./SamTFE/Bin"
export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
vblank_mode=0 MANGOHUD_CONFIG="offset_y=75,offset_x=20,cpu_temp,gpu_temp,ram,vram,engine_version" mangohud --dlsym "./SeriousSam"
}
run_option4() {
echo "Running ${option4}"
cd "./SamTSE/Bin"
export LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
vblank_mode=0 MANGOHUD_CONFIG="offset_y=75,offset_x=20,cpu_temp,gpu_temp,ram,vram,engine_version" mangohud --dlsym "./SeriousSam"
}
Launcher
echo "Running ${GAME_NAME} launcher"
option1="Run Serious Sam TFE Classic (Lock 60fps)"
option2="Run Serious Sam TSE Classic (Lock 60fps)"
option3="Run Serious Sam TFE Classic (UnLock fps)"
option4="Run Serious Sam TSE Classic (UnLock fps)"
window_title="${GAME_NAME} Launcher"
LAUNCHER=$(zenity --width 400 --height 300 --list \
--title "${window_title}" \
--text="Launch:" \
--column=" " \
"${option1}" \
"${option2}" \
"${option3}" \
"${option4}"
)
if [ "${LAUNCHER}" == "${option1}" ]
then
run_option1
elif [ "${LAUNCHER}" == "${option2}" ]
then
run_option2
elif [ "${LAUNCHER}" == "${option3}" ]
then
run_option3
elif [ "${LAUNCHER}" == "${option4}" ]
then
run_option4
else
exit 0
fi