added extreme speedup when uploading all existing private tapes
authorHolger Schemel <info@artsoft.org>
Mon, 20 Sep 2021 18:27:22 +0000 (20:27 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 20 Sep 2021 18:27:22 +0000 (20:27 +0200)
src/tape.c

index cf65474af537c6af772c7ab44f81eaac952222fb..ef7e8a5ab942f1c457c41a9b3328c57b818efaa4 100644 (file)
@@ -1694,6 +1694,19 @@ static int AutoPlayTapesExt(boolean initialize)
     if (!global.autoplay_all && !global.autoplay_level[level_nr])
       continue;
 
+    if (global.autoplay_mode == AUTOPLAY_MODE_UPLOAD)
+    {
+      // speed things up when uploading all existing private tapes
+      if (autoplay.all_levelsets && !fileExists(getTapeFilename(level_nr)))
+      {
+       autoplay.num_tape_missing++;
+
+       Print("Tape %03d: (no tape found)\n", level_nr);
+
+       continue;
+      }
+    }
+
     TapeErase();
     TapeRewind();      // needed to reset "tape.auto_play_level_solved"