Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # GOG.com (www.gog.com)
- # Shadowrun: Dragonfall - Director's Cut
- # Initialization
- CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
- cd "${CURRENT_DIR}"
- source support/gog_com.shlib
- # Game info
- GAME_NAME="$(get_gameinfo 1)"
- VERSION="$(get_gameinfo 2)"
- VERSION_DEV="$(get_gameinfo 3)"
- # Actions
- run_game() {
- echo "Running ${GAME_NAME}"
- cd game
- ./"Dragonfall.sh"
- }
- run_editor() {
- echo "Running Editor"
- cd game
- ./"ShadowrunEditor"
- }
- default() {
- run_game
- }
- # Options
- define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
- define_option "-e" "--editor" "start Shadowrun Editor" "run_editor" "$@"
- # Defaults
- standard_options "$@"
Advertisement
Add Comment
Please, Sign In to add comment