nonlocalspellcast

./game/Dragonfall.sh

Feb 1st, 2024 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. HW=`uname -m`
  4. SRR=Dragonfall
  5.  
  6.  
  7. # Find the directory this script is running from so we can CD into it.
  8. me=`which "$0"`
  9. if test -L "$me"; then
  10. me=`readlink -nf "$me"`
  11. fi
  12.  
  13. SRRDIR=`dirname "$me" 2>/dev/null`
  14. cd "$SRRDIR" > /dev/null # added double quotes to avoid line 14 error
  15.  
  16. # Make sure the execute bit hasn't been mucked with.
  17. if test ! -x "$SRR"; then
  18. chmod +x "$SRR"
  19. fi
  20.  
  21. # Run, saving into log please (Unity bug causes this to not be on by default).
  22. ./$SRR -logFile output.log
  23.  
  24. ECODE=$?
  25. if [ "$ECODE" != "0" ]; then
  26. echo ""
  27. echo "It seems Shadowrun Dragonfall has exited unsuccessfully (error = $ECODE)."
  28. echo ""
  29. echo "Please verify that you have the latest drivers installed before filing a bug report here:"
  30. echo " http://harebrained-schemes.com/shadowrun/bug-reports"
  31. echo ""
  32. exit $ECODE
  33. fi
  34.  
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment