Changed graph download/upload URLs to reflect changes done with migrating graph repository to github.

This commit is contained in:
ds 2020-11-12 16:19:07 +03:00
commit 1b7d7e18db
3 changed files with 3 additions and 3 deletions

View file

@ -217,7 +217,7 @@ yb_graph_fixcamp "1"
// --- // ---
// Default: "yapb.ru" // Default: "yapb.ru"
// //
yb_graph_url "yapb.ru" yb_graph_url "graph.yapb.ru"
// //
// Kick bots to automatically make room for human players. // Kick bots to automatically make room for human players.

View file

@ -33,7 +33,7 @@ public:
StringRef author { "YaPB Project" }; StringRef author { "YaPB Project" };
StringRef email { "yapb@jeefo.net" }; StringRef email { "yapb@jeefo.net" };
StringRef url { "https://yapb.ru/" }; StringRef url { "https://yapb.ru/" };
StringRef download { "yapb.ru" }; StringRef download { "graph.yapb.ru" };
StringRef folder { "yapb" }; StringRef folder { "yapb" };
StringRef logtag { "YB" }; StringRef logtag { "YB" };
StringRef dtime { __DATE__ " " __TIME__ }; StringRef dtime { __DATE__ " " __TIME__ };

View file

@ -759,7 +759,7 @@ int BotControl::cmdNodeUpload () {
String mapName = game.getMapName (); String mapName = game.getMapName ();
// try to upload the file // try to upload the file
if (http.uploadFile (strings.format ("http://%s/graph", product.download), strings.format ("%sgraph/%s.graph", graph.getDataDirectory (false), mapName.lowercase ()))) { if (http.uploadFile ("http://yapb.ru/upload", strings.format ("%sgraph/%s.graph", graph.getDataDirectory (false), mapName.lowercase ()))) {
msg ("Graph file was successfully validated and uploaded to the YaPB Graph DB (%s).", product.download); msg ("Graph file was successfully validated and uploaded to the YaPB Graph DB (%s).", product.download);
msg ("It will be available for download for all YaPB users in a few minutes."); msg ("It will be available for download for all YaPB users in a few minutes.");
msg ("\n"); msg ("\n");