zoogie / Kartminer7

Use Mario Kart 7 as a blue shell to take control of your 3DS
MIT License
48 stars 1 forks source link

typo in `find_and_run.sh` for linux / macos `backup` / `restore` #20

Closed asottile closed 1 year ago

asottile commented 1 year ago

here's a quick patch:

 for i in $(sh -c "$list_fat"); do
     if [ -d "$(printf $i)/Nintendo 3DS" ]; then
         case "$act" in
             inject)
                 $save3ds --sd "$(printf $i)" extdata/$tid --import --sdext $tid --boot9 resources/boot9.bin --movable resources/movable.sed
                 ;;
             backup)
-                $save3ds --sd "$(printf $i)" $tid --extract --sdext $tid --boot9 resources/boot9.bin --movable resources/movable.sed
+                $save3ds --sd "$(printf $i)" extdata/$tid --extract --sdext $tid --boot9 resources/boot9.bin --movable resources/movable.sed
                 ;;
             restore)
-                $save3ds --sd "$(printf $i)" $tid --import --sdext $tid --boot9 resources/boot9.bin --movable resources/movable.sed
+                $save3ds --sd "$(printf $i)" extdata/$tid --import --sdext $tid --boot9 resources/boot9.bin --movable resources/movable.sed
                 ;;
         esac
     fi
danny8376 commented 1 year ago

no, extdata is where the exploit data stored, what you did simply ruin it but yeah, it should be inside backup, which is already fixed (not uploaded yet)

asottile commented 1 year ago

suit yourself -- I added it to the backup command where it was missing and without it I was getting the cryptic error messages from https://github.com/wwylele/save3ds/issues/14

thought I'd be helpful and post here but it seems it is not welcome -- have a good day