projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e915e26
)
added extreme speedup when uploading all existing private tapes
author
Holger Schemel
<info@artsoft.org>
Mon, 20 Sep 2021 18:27:22 +0000
(20:27 +0200)
committer
Holger Schemel
<info@artsoft.org>
Mon, 20 Sep 2021 18:27:22 +0000
(20:27 +0200)
src/tape.c
patch
|
blob
|
history
diff --git
a/src/tape.c
b/src/tape.c
index cf65474af537c6af772c7ab44f81eaac952222fb..ef7e8a5ab942f1c457c41a9b3328c57b818efaa4 100644
(file)
--- 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_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"
TapeErase();
TapeRewind(); // needed to reset "tape.auto_play_level_solved"