#!/bin/sh
# XaAES launcher 0.06
# YesCREW 2002 - 2025

# XaAES path's
xaaesdir="u:/aes/xaaes/"
xaaes="u:/aes/xaaes/xaloader.prg u:/aes/xaaes/"

# XaAES CNF file path
xaaescfg="u:/aes/xaaes/xaaes.cnf"

# Default XaAES Video mode = TT medium
video="-fvideo 26"

# Thing desktop path / maybe better to set in xaaes.cnf
#thingdir="u:/aes/Thing"

# $1 gives u parameter u passed at commandline
# script. Action for certain modes are defined 
# here. U may do as many modes/actions u want.
if [ "$1" = "-fvideo 26" ] ; then
   video="-fvideo 26"
fi

if [ "$1" = "-fvideo 27" ] ; then
   video="-fvideo 27"
fi

# setting AESDIR env variable wouldnt be bad if you
# u plan to change AES-es on the fly.
export SYSDIR=$xaaesdir

# setting THINGDIR env variable
#export THINGDIR=$thingdir

# Starting XaAES
$xaaes $video
