#!/bin/sh
scriptdir=$(dirname "$0")
cd "$scriptdir"

CONFIG=0

while getopts "c" opt; do
  case "$opt" in
    c) CONFIG=1;;
    *) echo "Invalid option" && exit 1 ;;
  esac
done
shift $((OPTIND - 1)) # Remove parsed options from positional parameters

ARGS=""

if [ ! $CONFIG -gt 0 ]; then
	ARGS="-skipdialog"
fi

export WINEPREFIX=~/Games/prefixes/old

CMD="wine System/DeusEx.exe $ARGS"

launch_native() {
	$CMD
}

launch_gamescope() {
	gamescope \
		-w 1920 -h 1080 \
		-W 1920 -H 1080 \
		-- $CMD
}


launch_native
