From e11fa67d03ba1bfb469767ccdcc5ceae10f405f2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 20 Sep 2021 20:27:22 +0200 Subject: [PATCH] added extreme speedup when uploading all existing private tapes --- src/tape.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/tape.c b/src/tape.c index cf65474a..ef7e8a5a 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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" -- 2.34.1