undertale_linux_fixups/start.sh

33 lines
574 B
Bash
Executable File

#!/bin/bash
# GOG.com (www.gog.com)
# Undertale
# 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
export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH
R600_DEBUG=check_vm ./runner
#./"runner"
}
default() {
run_game
}
# Options
define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
# Defaults
standard_options "$@"