From: Holger Schemel Date: Sun, 5 Sep 2021 21:45:40 +0000 (+0200) Subject: added setup option to ask for uploading tapes to score server X-Git-Tag: 4.3.0.0~71 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=fa4f857a268adfe4aa1e29f2449fff8b1c2fbf0e;p=rocksndiamonds.git added setup option to ask for uploading tapes to score server --- diff --git a/src/files.c b/src/files.c index 3c1fd5e4..20f51025 100644 --- a/src/files.c +++ b/src/files.c @@ -9768,6 +9768,10 @@ static struct TokenInfo global_setup_tokens[] = 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" @@ -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->ask_for_uploading_tapes = TRUE; si->touch.control_type = getStringCopy(TOUCH_CONTROL_DEFAULT); si->touch.move_distance = TOUCH_MOVE_DISTANCE_DEFAULT; // percent diff --git a/src/libgame/system.h b/src/libgame/system.h index 9270c85a..ed246f0d 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -1500,6 +1500,7 @@ struct SetupInfo boolean api_server; char *api_server_hostname; char *api_server_password; + boolean ask_for_uploading_tapes; struct SetupAutoSetupInfo auto_setup; struct SetupLevelSetupInfo level_setup;