From 1b7d7e18db66c53043058e70e95201a58dc892e2 Mon Sep 17 00:00:00 2001 From: ds Date: Thu, 12 Nov 2020 16:19:07 +0300 Subject: [PATCH] Changed graph download/upload URLs to reflect changes done with migrating graph repository to github. --- cfg/addons/yapb/conf/yapb.cfg | 2 +- inc/product.h | 2 +- src/control.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cfg/addons/yapb/conf/yapb.cfg b/cfg/addons/yapb/conf/yapb.cfg index 382f2c2..bda9f7f 100644 --- a/cfg/addons/yapb/conf/yapb.cfg +++ b/cfg/addons/yapb/conf/yapb.cfg @@ -217,7 +217,7 @@ yb_graph_fixcamp "1" // --- // Default: "yapb.ru" // -yb_graph_url "yapb.ru" +yb_graph_url "graph.yapb.ru" // // Kick bots to automatically make room for human players. diff --git a/inc/product.h b/inc/product.h index 852ab74..eb7f35c 100644 --- a/inc/product.h +++ b/inc/product.h @@ -33,7 +33,7 @@ public: StringRef author { "YaPB Project" }; StringRef email { "yapb@jeefo.net" }; StringRef url { "https://yapb.ru/" }; - StringRef download { "yapb.ru" }; + StringRef download { "graph.yapb.ru" }; StringRef folder { "yapb" }; StringRef logtag { "YB" }; StringRef dtime { __DATE__ " " __TIME__ }; diff --git a/src/control.cpp b/src/control.cpp index 31894ef..2148b4c 100644 --- a/src/control.cpp +++ b/src/control.cpp @@ -759,7 +759,7 @@ int BotControl::cmdNodeUpload () { String mapName = game.getMapName (); // 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 ("It will be available for download for all YaPB users in a few minutes."); msg ("\n");