-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gpSP save migration + restore mGBA transfer option
- Loading branch information
Showing
2 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
static/build/.tmp_update/script/migration/00020_rename_gpsp_save_extension.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
save_dir=/mnt/SDCARD/Saves/CurrentProfile/saves | ||
|
||
if [ ! -d $save_dir/gpSP ]; then | ||
exit 0 | ||
fi | ||
|
||
# Rename gpSP save files from .sav to .srm | ||
for file in $save_dir/gpSP/*.sav; do | ||
mv -n -- "$file" "${file%.sav}.srm" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters