Advertisement
Guest User

Untitled

a guest
Jan 16th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. # GOG.com (www.gog.com)
  3. # Deponia 4: Doomsday
  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.     ./"start"  
  20. }
  21.  
  22. default() {
  23.  run_game
  24. }
  25.  
  26. # Options
  27. define_option "-s" "--start" "start ${GAME_NAME} [default]" "run_game" "$@"
  28.  
  29. # Defaults
  30. standard_options "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement