#!/bin/sh
if [ -n "${XDG_CONFIG_HOME}" ]; then
	DIR="${XDG_CONFIG_HOME}/assaultcube"
else
	DIR="${HOME}/.config/assaultcube"
fi
mkdir -p "${DIR}" && \
	cd "/usr/pkg/share/assaultcube" && \
	exec "/usr/pkg/libexec/${0##*/}" "--home=${DIR}" --init $@
