Skip to content

Commit

Permalink
Updater: path fix
Browse files Browse the repository at this point in the history
- restore path fix
- add common_launcher.sh to trigger scripts update for pre-release users
  • Loading branch information
cizia64 committed Jul 17, 2024
1 parent b1f7ccb commit 7371479
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions System/starts/_FirmwareCheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ if [ -n "$UPDATE_FILE" ]; then
[ ! -f "/mnt/SDCARD/System/bin/sdl2imgshow" ] ||
[ ! -f "/mnt/SDCARD/System/usr/trimui/scripts/crossmix_update.sh" ] ||
[ ! -f "/mnt/SDCARD/System/usr/trimui/scripts/getkey.sh" ] ||
[ ! -f "/mnt/SDCARD/System/usr/trimui/scripts/common_launcher.sh" ] ||
[ ! -f "/mnt/SDCARD/System/usr/trimui/scripts/evtest" ]; then
echo "One or more required files are missing."
/mnt/SDCARD/System/bin/7zz -aoa x "$UPDATE_FILE" \
Expand Down
6 changes: 3 additions & 3 deletions System/usr/trimui/scripts/crossmix_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ restore_files() {
if [ -z "$FILE_PATTERN" ]; then
FILE_PATTERN="*"
fi
echo "--------------------------------------------"
echo "------------------------------------------------------------------------------------"
if [ -n "$(find "$SRC_DIR" -mindepth 1 -name "$FILE_PATTERN" -print -quit 2>/dev/null)" ]; then
echo -e "$NAME: restoring files...\n"
mkdir -p "$DEST_DIR"
Expand Down Expand Up @@ -137,7 +137,7 @@ echo "Destination directory: $BCK_DIR"
move_items

# No BIOS should be here... but just in case
mv "$BCK_DIR/RetroArch/.retroarch/system/"* "/mnt/SDCARD/BIOS" 2>&1
mv "$BCK_DIR/RetroArch/.retroarch/system/"* "/mnt/SDCARD/BIOS" 2>/dev/null
sync

echo "=========================================================================================="
Expand All @@ -161,7 +161,7 @@ echo "==========================================================================
echo " ============== Restore saves and savestates... =============="

# Restore saves and savestates from Retroarch
restore_files "Retroarch saves and savestates" "$BCK_DIR/RetroArch/.retroarch/saves/" "/mnt/SDCARD/RetroArch/.retroarch/SAVEDATA" "*"
restore_files "Retroarch saves and savestates" "$BCK_DIR/RetroArch/.retroarch/saves/" "/mnt/SDCARD/RetroArch/.retroarch/saves/" "*"
restore_files "Retroarch saves and savestates" "$BCK_DIR/RetroArch/.retroarch/states/" "/mnt/SDCARD/RetroArch/.retroarch/states/" "*"

# Restore PPSSPP 1.15.4 standalone saves and savestates
Expand Down

0 comments on commit 7371479

Please sign in to comment.