BIOS Backup directory is mandatory.

This commit is contained in:
fewtarius 2022-03-14 08:56:04 -04:00
parent b446c3f2f8
commit 2c1dd78bb8
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -10,12 +10,18 @@
ROM_DIR="/storage/roms/saturn/yabasanshiro"
CONFIG_DIR="/storage/.config/game/configs/yabasanshiro"
SOURCE_DIR="/usr/config/game/configs/yabasanshiro"
BIOS_BACKUP="/storage/roms/bios/yabasanshiro"
if [ ! -d "${ROM_DIR}" ]
then
mkdir -p "${ROM_DIR}"
fi
if [ ! -d "${BIOS_BACKUP}" ]
then
mkdir -p "${BIOS_BACKUP}"
fi
if [ ! -e "${ROM_DIR}/${ROM_DIR}/input.cfg" ]
then
GAMEPAD=$(grep -b4 $(readlink ${DEVICE_CONTROLLER_DEV} | sed "s#^.*/##") /proc/bus/input/devices | awk 'BEGIN {FS="\""}; /Name/ {printf $2}')