Add getter for server file to CApplication

This commit is contained in:
Lars Toenning
2023-02-14 17:42:05 +01:00
parent 4f43633231
commit fbd9255f56
2 changed files with 10 additions and 0 deletions

View File

@@ -1737,6 +1737,13 @@ namespace BlackCore
return CUrlList();
}
CUrl CApplication::getVatsimServerFileUrl() const
{
if (m_shutdown || !m_setupReader) { return {}; }
return m_setupReader->getSetup().getVatsimServerFileUrl();
}
void CApplication::onCrashDumpUploadEnabledChanged()
{
const bool enabled = CBuildConfig::isReleaseBuild() && m_crashDumpSettings.getThreadLocal().isEnabled();

View File

@@ -439,6 +439,9 @@ namespace BlackCore
//! \threadsafe
BlackMisc::Network::CUrlList getVatsimDataFileUrls() const;
//! Get URL to file which contains the list of VATSIM servers
BlackMisc::Network::CUrl getVatsimServerFileUrl() const;
//! Start services, if not yet parsed call CApplication::parse
virtual bool start();