nonlocalspellcast

start.sh

Feb 1st, 2024 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. # GOG.com (www.gog.com)
  3. # Shadowrun: Dragonfall - Director's Cut
  4.  
  5. # Initialization
  6. CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  7. cd "${CURRENT_DIR}"
  8. source support/gog_com.shlib
  9.  
  10. # Game info
  11. GAME_NAME="$(get_gameinfo 1)"
  12. VERSION="$(get_gameinfo 2)"
  13. VERSION_DEV="$(get_gameinfo 3)"
  14.  
  15. # Actions
  16. run_game() {
  17. echo "Running ${GAME_NAME}"
  18. cd game
  19. ./"Dragonfall.sh"
  20. }
  21.  
  22. run_editor() {
  23. echo "Running Editor"
  24. cd game
  25. ./"ShadowrunEditor"
  26.  
  27. }
  28.  
  29. default() {
  30. run_game
  31. }
  32.  
  33. # Options
  34. define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
  35. define_option "-e" "--editor" "start Shadowrun Editor" "run_editor" "$@"
  36.  
  37. # Defaults
  38. standard_options "$@"
  39.  
Advertisement
Add Comment
Please, Sign In to add comment