#!/bin/bash
# figure out the absolute path to the script being run a bit# non-obvious, the ${0%/*} pulls the path out of $0, cd's into the# specified directory, then uses $PWD to figure out where that# directory lives - and all this in a subshell, so we don't affect# $PWD
STEAMROOT=$(cd "${0%/*}" && echo $PWD)
#determine platformUNAME=`uname`if [ "$UNAME" == "Darwin" ]; then PLATFORM=osx32 # prepend our lib path to LD_LIBRARY_PATH export DYLD_LIBRARY_PATH="${STEAMROOT}"/${PLATFORM}:$DYLD_LIBRARY_PATHelif [ "$UNAME" == "Linux" ]; then
PLATFORM=linux32
# prepend our lib path to LD_LIBRARY_PATH
export LD_LIBRARY_PATH="${STEAMROOT}"/${PLATFORM}:$LD_LIBRARY_PATH
fi
if [ -z $STEAMEXE ]; then STEAMEXE=steamfi
ulimit -n 2048
# and launch steamcd "$STEAMROOT"
STATUS=42while [ $STATUS -eq 42 ]; do ${DEBUGGER} "${STEAMROOT}"/${PLATFORM}/${STEAMEXE} $@ STATUS=$? # are we running osx? if [ $STATUS -eq 42 -a ${PLATFORM} == "osx32" -a -f Info.plist ]; then # are we running from in a bundle? exec open "${STEAMROOT}"/../.. fidoneexit $STATUS
Copyright © 2026, NextGenUpdate.
All Rights Reserved.