mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Add getter for server file to CApplication
This commit is contained in:
@@ -1737,6 +1737,13 @@ namespace BlackCore
|
|||||||
return CUrlList();
|
return CUrlList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CUrl CApplication::getVatsimServerFileUrl() const
|
||||||
|
{
|
||||||
|
if (m_shutdown || !m_setupReader) { return {}; }
|
||||||
|
|
||||||
|
return m_setupReader->getSetup().getVatsimServerFileUrl();
|
||||||
|
}
|
||||||
|
|
||||||
void CApplication::onCrashDumpUploadEnabledChanged()
|
void CApplication::onCrashDumpUploadEnabledChanged()
|
||||||
{
|
{
|
||||||
const bool enabled = CBuildConfig::isReleaseBuild() && m_crashDumpSettings.getThreadLocal().isEnabled();
|
const bool enabled = CBuildConfig::isReleaseBuild() && m_crashDumpSettings.getThreadLocal().isEnabled();
|
||||||
|
|||||||
@@ -439,6 +439,9 @@ namespace BlackCore
|
|||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
BlackMisc::Network::CUrlList getVatsimDataFileUrls() const;
|
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
|
//! Start services, if not yet parsed call CApplication::parse
|
||||||
virtual bool start();
|
virtual bool start();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user