#!/bin/bash # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS) . /etc/profile jslisten set "-9 drastic" #Copy drastic files to .config if [ ! -d "/storage/.config/drastic" ]; then mkdir -p /storage/.config/drastic/ cp -r /usr/config/drastic/* /storage/.config/drastic/ fi if [ ! -d "/storage/.config/drastic/system" ]; then mkdir -p mkdir -p /storage/.config/drastic/system fi for bios in nds_bios_arm9.bin nds_bios_arm7.bin do if [ ! -e "/storage/.config/drastic/system/${bios}" ]; then if [ -e "/storage/roms/bios/${bios}" ]; then ln -sf /storage/roms/bios/${bios} /storage/.config/drastic/system fi fi done #Make drastic savestate folder if [ ! -d "/storage/roms/savestates/nds" ]; then mkdir -p /storage/roms/savestates/nds fi #Link savestates to roms/savestates/nds rm -rf /storage/.config/drastic/savestates ln -sf /storage/roms/savestates/nds /storage/.config/drastic/savestates #Link saves to roms/nds/saves rm -rf /storage/.config/drastic/backup ln -sf /storage/roms/nds /storage/.config/drastic/backup cd /storage/.config/drastic/ @LIBEGL@ ./drastic "$1"