Guest User

Untitled

a guest
Aug 12th, 2021
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #!/bin/bash
  2. # GOG.com (www.gog.com)
  3. # Game
  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.  
  18. echo "Running ${GAME_NAME}"
  19. cd "${CURRENT_DIR}/game"
  20. chmod +x * -R
  21. ./"shovelknight"
  22.  
  23. }
  24.  
  25. default() {
  26. run_game
  27. }
  28.  
  29. # Options
  30. define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
  31.  
  32. # Defaults
  33. standard_options "$@"
  34.  
Advertisement
Add Comment
Please, Sign In to add comment