Adding support for device specific retroarch.cfg

This commit is contained in:
Brooksytech 2022-04-04 09:43:34 -07:00 committed by GitHub
parent 0e7e39bb41
commit 817e7fc5de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,11 @@ makeinstall_target() {
# General configuration # General configuration
mkdir -p ${INSTALL}/usr/config/retroarch/ mkdir -p ${INSTALL}/usr/config/retroarch/
if [ -d "${PKG_DIR}/sources/${DEVICE}" ] then
cp -rf ${PKG_DIR}/sources/${DEVICE}/* ${INSTALL}/usr/config/retroarch/
else
cp -rf ${PKG_DIR}/sources/* ${INSTALL}/usr/config/retroarch/ cp -rf ${PKG_DIR}/sources/* ${INSTALL}/usr/config/retroarch/
fi
else else
mkdir -p ${INSTALL}/usr/bin mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/retroarch ${INSTALL}/usr/bin cp ${PKG_BUILD}/retroarch ${INSTALL}/usr/bin