#!/usr/bin/env bash

gamePath=~/.local/games/doom
check_dependencies python-pyside6:PySide6 python-setproctitle:setproctitle
pushd "${gamePath}"
if ! [[ -d "toby-doom-launcher" ]]; then
    git clone https://git.stormux.org/storm/toby-doom-launcher.git
else
    git -C "${gamePath}/toby-doom-launcher" pull
fi
"toby-doom-launcher/Toby Doom Launcher.py"