Merge pull request #2319 from porschemad911/azahar-states

azahar-sa - move savestates to /roms/savestates/3ds
This commit is contained in:
John Williams
2026-02-14 22:51:44 +11:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ IMMUTABLE_CONF_DIR="/usr/config/azahar"
CONF_DIR="/storage/.config/azahar"
CONF_FILE="${CONF_DIR}/qt-config.ini"
ROMS_DIR="/storage/roms/3ds"
SAVESTATES_DIR="/storage/roms/savestates/3ds"
SWAY_CONFIG="/storage/.config/sway/config"
# Make sure azahar config directory exists
@@ -31,6 +32,11 @@ ln -sf ${ROMS_DIR}/azahar/sdmc ${CONF_DIR}/sdmc
rm -rf ${CONF_DIR}/nand
ln -sf ${ROMS_DIR}/azahar/nand ${CONF_DIR}/nand
# Move states to savestates folder
[ ! -d ${SAVESTATES_DIR} ] && mkdir -p ${SAVESTATES_DIR}
rm -rf ${CONF_DIR}/states
ln -sf ${SAVESTATES_DIR} ${CONF_DIR}/states
# RK3588 - handle different config files for ACE / CM5
if [ "${HW_DEVICE}" = "RK3588" ] && [ ! -f "${CONF_FILE}" ]; then
if echo ${QUIRK_DEVICE} | grep CM5; then

View File

@@ -249,3 +249,9 @@ cp -r "/usr/config/SDL-GameControllerDB/gamecontrollerdb.txt" "/storage/.config/
# Delete existing swap file - disabled by default on all platforms in https://github.com/ROCKNIX/distribution/pull/2223
rm -f /storage/.cache/swapfile
# Move existing azahar save states to /roms/savestates/3ds
if [[ -d "/storage/.config/azahar/states" && ! -d "/storage/roms/savestates/3ds" ]]; then
mkdir -p /storage/roms/savestates/3ds
cp -rf /storage/.config/azahar/states/* /storage/roms/savestates/3ds/
fi