[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:
NoelClick
2025-11-20 17:38:07 -08:00
committed by jeanbaptisteC
parent 08e8ebd434
commit 6ded75de9c
4 changed files with 36 additions and 10 deletions

View File

@@ -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);