SHARE
TWEET

Untitled

a guest Jun 9th, 2016 160 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. DF_DIR=$(dirname "$0")
  3. cd "${DF_DIR}"
  4. export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch.
  5. #export SDL_VIDEO_CENTERED=1 # Centre the screen.  Messes up resizing.
  6.  
  7. if [ `uname -m` = "x86_64" ] ; then
  8.     LIBZ=
  9.     for dir in /lib32 /usr/lib32 /lib /usr/lib /lib/i386-linux-gnu; do
  10.         if ldd "$dir/libz.so.1" > /dev/null 2>&1 ; then
  11.             LIBZ="$dir/libz.so.1"
  12.             break
  13.         fi
  14.     done
  15.  
  16.     if [ -z "$LIBZ" ] ; then
  17.         echo No 32-bit libz.so found
  18.         exit 1
  19.     fi
  20.  
  21.     if [ -z "$LD_PRELOAD" ] ; then
  22.         export LD_PRELOAD=$LIBZ
  23.     else
  24.         export LD_PRELOAD=$LD_PRELOAD:$LIBZ
  25.     fi
  26. fi
  27.  
  28. ./libs/Dwarf_Fortress "$@" # Go, go, go! :)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top