+ if (global.autoplay_mode == AUTOPLAY_MODE_UPLOAD)
+ {
+ Print("\n");
+ PrintLine("=", 79);
+
+ if (num_tapes >= 0)
+ Print("SUMMARY: %d tapes uploaded.\n", num_tapes);
+ else
+ Print("SUMMARY: Uploading tapes failed.\n");
+
+ PrintLine("=", 79);
+ }
+
+ // clear timestamp for batch tape upload (required after interactive upload)
+ global.autoplay_time = 0;
+
+ // exit if running headless or if visually auto-playing tapes
+ if (program.headless || global.autoplay_mode != AUTOPLAY_MODE_UPLOAD)
+ CloseAllAndExit(0);
+
+ // when running interactively, restore last selected level set and number
+ leveldir_current = leveldir_current_last;
+ level_nr = level_nr_last;
+
+ return num_tapes;
+}
+
+int AutoPlayTapes(void)
+{
+ return AutoPlayTapesExt(TRUE);
+}
+
+int AutoPlayTapesContinue(void)
+{
+ return AutoPlayTapesExt(FALSE);