mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T237, init/read from JSON files
* multi format compatible (automatically detect format) * flag if cache values shall be overridden * init from resource files (those are the files coming with the installer) * automatically read in background if reader is (already) in its own thread (otherwise cache.set() ASSERT)
This commit is contained in:
@@ -217,18 +217,21 @@ namespace BlackCore
|
||||
return CUrl();
|
||||
}
|
||||
|
||||
CStatusMessageList CInfoDataReader::readFromJsonFiles(const QString &dir, CEntityFlags::Entity whatToRead)
|
||||
CStatusMessageList CInfoDataReader::readFromJsonFiles(const QString &dir, CEntityFlags::Entity whatToRead, bool overrideNewer)
|
||||
{
|
||||
Q_UNUSED(dir);
|
||||
Q_UNUSED(whatToRead);
|
||||
Q_UNUSED(overrideNewer);
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Not supported");
|
||||
|
||||
return CStatusMessage(this).error("Not supported");
|
||||
}
|
||||
|
||||
bool CInfoDataReader::readFromJsonFilesInBackground(const QString &dir, CEntityFlags::Entity whatToRead)
|
||||
bool CInfoDataReader::readFromJsonFilesInBackground(const QString &dir, CEntityFlags::Entity whatToRead, bool overrideNewer)
|
||||
{
|
||||
Q_UNUSED(dir);
|
||||
Q_UNUSED(whatToRead);
|
||||
Q_UNUSED(overrideNewer)
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Not supported");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user