summarylogtreecommitdiffstats
path: root/launch.sh
blob: d7effe12ce4ca2336c944952c2a9b83c35b3dd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Launch script for Legends of Equestria

# Change to game directory
GAMEPATH="/opt/legends-of-equestria/loe"

# What architecture are we running?
MACHINE=`uname -m`
if [ "$MACHINE" = "x86_64" ]
then
	# Set path to binary (64 bit)
	BIN="loe.x86_64"
else
	# Default to x86
	BIN="loe.x86"
fi

# Run the game, (optionally) with the debugger
"$GAMEPATH/$BIN" "$@"

# Get the game's exit code, and return it.
e=$?
exit $e