Open Source Tomb Raider Engine
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

setup_mac.sh 917B

123456789101112131415161718192021
  1. #!/bin/sh
  2. cd `dirname $0`
  3. if [ ! -d "${HOME}/.OpenRaider" ]; then
  4. echo "Setting up OpenRaider for user $USER..."
  5. mkdir -p ~/.OpenRaider
  6. cp ../Resources/defaults/OpenRaider.ini ~/.OpenRaider/
  7. mkdir -p ~/.OpenRaider/paks
  8. mkdir -p ~/.OpenRaider/music
  9. mkdir -p ~/.OpenRaider/data
  10. mkdir -p ~/.OpenRaider/sshots
  11. cp ../Resources/defaults/*.tga ~/.OpenRaider/data
  12. cp ../Resources/defaults/*.ttf ~/.OpenRaider/data
  13. echo "DONE"
  14. osascript -e 'tell app "System Events" to display alert "Initial Configuration stored in ~/.OpenRaider\n\nView and edit OpenRaider.ini to your needs..."'
  15. fi
  16. if [[ ! -n `find "${HOME}/.OpenRaider/paks" -type f -exec echo Found {} \;` ]]; then
  17. echo "Missing level files!"
  18. osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace original Tomb Raider level files there!"'
  19. else
  20. ./OpenRaider
  21. fi