This commit is contained in:
travis134 2022-08-18 18:37:51 -07:00
parent 46e105b1f6
commit 44499ca417
No known key found for this signature in database
GPG key ID: FB8B9EEA5CEF2984
6 changed files with 9 additions and 130 deletions

View file

@ -1,32 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present travis134
. /etc/profile
RAZEPATH="/storage/roms/build"
clear >/dev/console
echo "Scanning for games..." >/dev/console
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}")
path=${abs_path#"$RAZEPATH/"}
if [[ "$path" =~ \ |\' ]]; then
path="\"${path}\""
fi
grp=$(basename "${grp_file}")
if [[ "$grp" =~ \ |\' ]]; then
path="\"${grp}\""
fi
file="${RAZEPATH}/${grp%.*}.build"
cat >"${file}" <<-EOM
PATH=${path}
GRP=${grp}
-- end --
EOM
done <<<"${grp_files}"
systemctl restart emustation
clear >/dev/console

View file

@ -1,32 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present travis134
. /etc/profile
RAZEPATH="/storage/roms/build"
clear >/dev/console
echo "Scanning for games..." >/dev/console
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}")
path=${abs_path#"$RAZEPATH/"}
if [[ "$path" =~ \ |\' ]]; then
path="\"${path}\""
fi
grp=$(basename "${grp_file}")
if [[ "$grp" =~ \ |\' ]]; then
path="\"${grp}\""
fi
file="${RAZEPATH}/${grp%.*}.build"
cat >"${file}" <<-EOM
PATH=${path}
GRP=${grp}
-- end --
EOM
done <<<"${grp_files}"
systemctl restart emustation
clear >/dev/console

View file

@ -1,32 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present travis134
. /etc/profile
RAZEPATH="/storage/roms/build"
clear >/dev/console
echo "Scanning for games..." >/dev/console
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}")
path=${abs_path#"$RAZEPATH/"}
if [[ "$path" =~ \ |\' ]]; then
path="\"${path}\""
fi
grp=$(basename "${grp_file}")
if [[ "$grp" =~ \ |\' ]]; then
path="\"${grp}\""
fi
file="${RAZEPATH}/${grp%.*}.build"
cat >"${file}" <<-EOM
PATH=${path}
GRP=${grp}
-- end --
EOM
done <<<"${grp_files}"
systemctl restart emustation
clear >/dev/console

View file

@ -1,32 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present travis134
. /etc/profile
RAZEPATH="/storage/roms/build"
clear >/dev/console
echo "Scanning for games..." >/dev/console
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}")
path=${abs_path#"$RAZEPATH/"}
if [[ "$path" =~ \ |\' ]]; then
path="\"${path}\""
fi
grp=$(basename "${grp_file}")
if [[ "$grp" =~ \ |\' ]]; then
path="\"${grp}\""
fi
file="${RAZEPATH}/${grp%.*}.build"
cat >"${file}" <<-EOM
PATH=${path}
GRP=${grp}
-- end --
EOM
done <<<"${grp_files}"
systemctl restart emustation
clear >/dev/console

View file

@ -19,8 +19,14 @@ while read -r grp_file; do
fi
grp=$(basename "${grp_file}")
if [[ "$grp" =~ \ |\' ]]; then
path="\"${grp}\""
grp="\"${grp}\""
fi
# Skip known non-game matches
if [[ ${grp^^} = "GUI.RFF" || ${grp^^} = "SOUNDS.RFF" ]]; then
continue
fi
file="${RAZEPATH}/${grp%.*}.build"
cat >"${file}" <<-EOM
PATH=${path}

View file

@ -50,10 +50,11 @@ makeinstall_target() {
chmod 0755 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config/game/raze
cp -rf ${PKG_DIR}/config/games ${INSTALL}/usr/config/game/raze
chmod 0755 ${INSTALL}/usr/config/game/raze/games/*sh
if [ -d "${PKG_DIR}/config/${DEVICE}" ]
then
cp -rf ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/game/raze
chmod 0755 ${INSTALL}/usr/config/game/raze/games/*sh
fi
cp ${PKG_BUILD}/.${TARGET_NAME}/*.pk3 ${INSTALL}/usr/config/game/raze
cp -r ${PKG_BUILD}/.${TARGET_NAME}/soundfonts ${INSTALL}/usr/config/game/raze