Add rff ext to scanner and uncopy raze.pk3, which should be picked up by raze.ini config in a separate fix

This commit is contained in:
travis134 2022-08-18 15:03:06 -07:00
parent 73a8ae249f
commit 5a4cfcbe95
No known key found for this signature in database
GPG key ID: FB8B9EEA5CEF2984

View file

@ -9,11 +9,10 @@ RAZEPATH="/storage/roms/build"
clear >/dev/console
echo "Scanning for games..." >/dev/console
grp_files=$(find "${RAZEPATH}" -type f -iname "*.grp")
grp_files=$(find "${RAZEPATH}" -type f \( -iname "*.grp" -o -iname "*.rff" \))
echo "Adding games..." >/dev/console
while read -r grp_file; do
abs_path=$(dirname "${grp_file}")
cp -f /storage/.config/game/raze/raze.pk3 "${abs_path}/raze.pk3"
path=${abs_path#"$RAZEPATH/"}
if [[ "$path" =~ \ |\' ]]; then
path="\"${path}\""