added setup option to ask for uploading tapes to score server
authorHolger Schemel <info@artsoft.org>
Sun, 5 Sep 2021 21:45:40 +0000 (23:45 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 5 Sep 2021 21:45:40 +0000 (23:45 +0200)
src/files.c
src/libgame/system.h

index 3c1fd5e47cf735d8015941a139078bee0ea189d7..20f5102594962e230d669b28ed2e551e99f9153b 100644 (file)
@@ -9768,6 +9768,10 @@ static struct TokenInfo global_setup_tokens[] =
     TYPE_STRING,
     &setup.api_server_password,                        "api_server_password"
   },
     TYPE_STRING,
     &setup.api_server_password,                        "api_server_password"
   },
+  {
+    TYPE_SWITCH,
+    &setup.ask_for_uploading_tapes,            "ask_for_uploading_tapes"
+  },
   {
     TYPE_STRING,
     &setup.touch.control_type,                 "touch.control_type"
   {
     TYPE_STRING,
     &setup.touch.control_type,                 "touch.control_type"
@@ -10407,6 +10411,7 @@ static void setSetupInfoToDefaults(struct SetupInfo *si)
   si->api_server = TRUE;
   si->api_server_hostname = getStringCopy(API_SERVER_HOSTNAME);
   si->api_server_password = getStringCopy(UNDEFINED_PASSWORD);
   si->api_server = TRUE;
   si->api_server_hostname = getStringCopy(API_SERVER_HOSTNAME);
   si->api_server_password = getStringCopy(UNDEFINED_PASSWORD);
+  si->ask_for_uploading_tapes = TRUE;
 
   si->touch.control_type = getStringCopy(TOUCH_CONTROL_DEFAULT);
   si->touch.move_distance = TOUCH_MOVE_DISTANCE_DEFAULT;       // percent
 
   si->touch.control_type = getStringCopy(TOUCH_CONTROL_DEFAULT);
   si->touch.move_distance = TOUCH_MOVE_DISTANCE_DEFAULT;       // percent
index 9270c85af912e5fc1a1b99599b748ba32d0fef3f..ed246f0d4baee50a94f724b3306001fc4568c04d 100644 (file)
@@ -1500,6 +1500,7 @@ struct SetupInfo
   boolean api_server;
   char *api_server_hostname;
   char *api_server_password;
   boolean api_server;
   char *api_server_hostname;
   char *api_server_password;
+  boolean ask_for_uploading_tapes;
 
   struct SetupAutoSetupInfo auto_setup;
   struct SetupLevelSetupInfo level_setup;
 
   struct SetupAutoSetupInfo auto_setup;
   struct SetupLevelSetupInfo level_setup;