Fixed update logic to support newer index downloaded from the internet

than the index stored in the resources.
This commit is contained in:
bubnikv 2019-12-10 15:01:24 +01:00
parent ece8e06914
commit d0aad74c27
3 changed files with 98 additions and 42 deletions

View file

@ -79,6 +79,8 @@ public:
VendorProfile() {}
VendorProfile(std::string id) : id(std::move(id)) {}
bool valid() const { return ! name.empty() && ! id.empty() && config_version.valid(); }
// Load VendorProfile from an ini file.
// If `load_all` is false, only the header with basic info (name, version, URLs) is loaded.
static VendorProfile from_ini(const boost::filesystem::path &path, bool load_all=true);