mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[core] Treat custom map download URL as CDN base, not meta server
- Update `MapFilesDownloader::LoadMetaConfig()` to skip the metaserver when a custom base URL is set and build MetaConfig with that URL as the only server. - Keep the existing metaserver-based behavior when no custom base URL is set. Signed-off-by: NoelClick <dev@noel.click>
This commit is contained in:
@@ -268,8 +268,9 @@ public:
|
||||
/// @return integer version in yyMMdd format.
|
||||
int32_t IntVersion() const;
|
||||
|
||||
/// Set custom meta server url to allow user-defined download servers
|
||||
void SetCustomMetaServerUrl(std::string const & url);
|
||||
/// Set custom map server url to allow user-defined download servers
|
||||
void SetCustomMapServerUrl(std::string & url);
|
||||
std::string const & CustomMapServerUrl() const;
|
||||
|
||||
/// @return url for clients to download maps
|
||||
std::string MetaServerUrl() const;
|
||||
@@ -342,6 +343,8 @@ private:
|
||||
void ShutdownThreads();
|
||||
|
||||
void GetSystemFontNames(FilesList & res) const;
|
||||
|
||||
std::string m_customMapServerUrl;
|
||||
};
|
||||
|
||||
std::string DebugPrint(Platform::EError err);
|
||||
|
||||
Reference in New Issue
Block a user