-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
executable file
·54 lines (49 loc) · 1020 Bytes
/
start.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
#!/bin/bash
# Entirely too desperate to star the game
M=$(uname -m)
if [ "$M" == "x86_64" ]
then
A="x64"
else
A="x86"
fi
osggLauncher=false
if [ -f launcher_linux_$A ]
then
echo "Found precompiled launcher"
osggLauncher=./launcher_linux_$A
else
if [ -f ./launcher/launcher ]
then
echo "Found manually compiled launcher"
osggLauncher=./launcher/launcher
fi
fi
if [ "$osggLauncher" != "false" ]
then
if ! $osggLauncher
then
echo "The launcher did not work"
osggLauncher=false
fi
else
echo "Found no launcher"
fi
if [ "$osggLauncher" == "false" ]
then
echo "Trying to start the game directly..."
if [ -f osgg_linux_$A ]
then
echo "Found precompiled osgg binary"
./osgg_linux_$A
elif [ -f osgg ]
then
echo "Found manually compiled osgg binary"
./osgg
else
echo "Sorry, osgg has not been compiled.."
echo "To compile it, type:"
echo "make"
exit 1
fi
fi