added requiring player name when uploading solution tapes via command line
authorHolger Schemel <info@artsoft.org>
Mon, 23 Aug 2021 08:31:34 +0000 (10:31 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 23 Aug 2021 08:31:34 +0000 (10:31 +0200)
src/tape.c

index daa90c8def387190e32605581b1e07f2fcd562f4..3d6774dd95390f6ca92f930bfbd64f8935311978 100644 (file)
@@ -1445,6 +1445,14 @@ void AutoPlayTapes(void)
   }
   else
   {
+    if ((global.autoplay_mode == AUTOPLAY_MODE_SAVE ||
+        global.autoplay_mode == AUTOPLAY_MODE_UPLOAD) &&
+       !options.mytapes &&
+       options.player_name == NULL)
+    {
+      Fail("specify player name when uploading solution tapes");
+    }
+
     DrawCompleteVideoDisplay();
 
     audio.sound_enabled = FALSE;