mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T199, also cache files can be loaded
* unwrap cache JSON object * parameter to control if cache format is allowed
This commit is contained in:
@@ -215,10 +215,10 @@ namespace BlackCore
|
||||
return url;
|
||||
}
|
||||
|
||||
CGlobalSetup CGlobalSetup::fromJsonFile(const QString &fileNameAndPath)
|
||||
CGlobalSetup CGlobalSetup::fromJsonFile(const QString &fileNameAndPath, bool acceptCacheFormat)
|
||||
{
|
||||
CGlobalSetup setup;
|
||||
loadFromJsonFile(setup, fileNameAndPath);
|
||||
loadFromJsonFile(setup, fileNameAndPath, acceptCacheFormat);
|
||||
return setup;
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace BlackCore
|
||||
static BlackMisc::Network::CUrl buildDbDataDirectoryUrl(const BlackMisc::Network::CUrl &candidate);
|
||||
|
||||
//! Object initialized by JSON file
|
||||
static CGlobalSetup fromJsonFile(const QString &fileNameAndPath);
|
||||
static CGlobalSetup fromJsonFile(const QString &fileNameAndPath, bool acceptCacheFormat);
|
||||
|
||||
private:
|
||||
bool m_wasLoaded = false; //!< Loaded from web
|
||||
|
||||
Reference in New Issue
Block a user