mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Add getter for server file to CApplication
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user