#!/usr/bin/env bash
# Simple wrapper to start GSportX via PulseAudio OSS Wrapper to enable
# sound via the older /dev/dsp interface.

# First run, get roms if needed and setup config file.
if [[ ! -f ${HOME}/.config/kegs/config.txt && -n ${HOME} ]]; then
    /usr/bin/kegs-getroms.sh
fi

cd /usr/share/kegs
exec /usr/bin/xkegs.bin -audio 1
