Open Source Tomb Raider Engine
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

setup_mac.sh 970B

12345678910111213141516171819202122
  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. cp ../Resources/defaults/*.pc ~/.OpenRaider/data
  14. echo "DONE"
  15. osascript -e 'tell app "System Events" to display alert "Initial Configuration stored in ~/.OpenRaider\n\nView and edit OpenRaider.ini to your needs..."'
  16. fi
  17. if [[ ! -n `find "${HOME}/.OpenRaider/paks" -type f -exec echo Found {} \;` ]]; then
  18. echo "Missing level files!"
  19. osascript -e 'tell app "System Events" to display alert "No level files stored in ~/.OpenRaider/paks\n\nPlace original Tomb Raider level files there!"'
  20. else
  21. ./OpenRaider
  22. fi