#!/bin/sh

# Load BS variables
source "/var/volatile/project_eris.cfg"

game="${1}"
shift
shift

echo 2 > /data/power/disable
cd "/media/project_eris/etc/project_eris/SUP/launchers/drastic"
chmod +x "drastic"
echo "launch_bootmenu" > "/tmp/launchfilecommand"
LD_PRELOAD=./drastic_sdl_remap.so ./drastic "$game" > /media/logs/es_drastic.log 2>&1
echo 0 > /data/power/disable
