Advertisement
Guest User

Untitled

a guest
Feb 19th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Change to game directory
  4. CANONPATH=`readlink -f "$0"`
  5. cd "`dirname "$CANONPATH"`"
  6.  
  7. # Check resource folders exist
  8. if [ ! -e data ]
  9. then
  10. echo "You are missing games resources `pwd`"
  11. echo "Your installation is incomplete!"
  12. exit 1
  13. fi
  14.  
  15.  
  16. MACHINE=`uname -m`
  17. if [ "$MACHINE" = x86_64 ]
  18. then
  19. LIBS=./LIB64
  20. BIN=./VVVVVV_64
  21. else
  22. LIBS=./LIB32
  23. BIN=./VVVVVV_32
  24. fi
  25.  
  26. # Run the game:
  27. export LD_LIBRARY_PATH=$LIBS:"$LD_LIBRARY_PATH"
  28. $BIN $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement