1#!/bin/bash 2# Entirely too desperate to star the game 3 4M=$(uname -m) 5if [ "$M" == "x86_64" ] 6then 7 A="x64" 8else 9 A="x86" 10fi 11 12osggLauncher=false 13if [ -f launcher_linux_$A ] 14then 15 echo "Found precompiled launcher" 16 osggLauncher=./launcher_linux_$A 17else 18 if [ -f ./launcher/launcher ] 19 then 20 echo "Found manually compiled launcher" 21 osggLauncher=./launcher/launcher 22 fi 23fi 24 25if [ "$osggLauncher" != "false" ] 26then 27 28 if ! $osggLauncher 29 then 30 echo "The launcher did not work" 31 osggLauncher=false 32 fi 33else 34 echo "Found no launcher" 35fi 36 37if [ "$osggLauncher" == "false" ] 38then 39 echo "Trying to start the game directly..." 40 if [ -f osgg_linux_$A ] 41 then 42 echo "Found precompiled osgg binary" 43 ./osgg_linux_$A 44 elif [ -f osgg ] 45 then 46 echo "Found manually compiled osgg binary" 47 ./osgg 48 else 49 echo "Sorry, osgg has not been compiled.." 50 echo "To compile it, type:" 51 echo "make" 52 exit 1 53 fi 54fi