TYPE_SWITCH,
&setup.provide_uploading_tapes, TEST_PREFIX "provide_uploading_tapes"
},
+ {
+ TYPE_SWITCH,
+ &setup.ask_for_using_api_server,TEST_PREFIX "ask_for_using_api_server"
+ },
};
static struct TokenInfo editor_setup_tokens[] =
si->api_server_password = getStringCopy(UNDEFINED_PASSWORD);
si->ask_for_uploading_tapes = TRUE;
si->provide_uploading_tapes = TRUE;
+ si->ask_for_using_api_server = TRUE;
}
static void setSetupInfoToDefaults_EditorCascade(struct SetupInfo *si)
return;
SaveScoreTape(level_nr);
+
+ if (setup.ask_for_using_api_server)
+ {
+ setup.use_api_server =
+ Request("Upload your score and tape to the high score server?", REQ_ASK);
+
+ if (!setup.use_api_server)
+ Request("Not using high score server! Use setup menu to enable again!",
+ REQ_CONFIRM);
+
+ runtime.use_api_server = setup.use_api_server;
+
+ // after asking for using API server once, do not ask again
+ setup.ask_for_using_api_server = FALSE;
+
+ SaveSetup_ServerSetup();
+ }
+
SaveServerScore(level_nr, tape_saved);
}
char *api_server_password;
boolean ask_for_uploading_tapes;
boolean provide_uploading_tapes;
+ boolean ask_for_using_api_server;
struct SetupAutoSetupInfo auto_setup;
struct SetupLevelSetupInfo level_setup;