patch manager: properly check patch versions

Also abort patch import of lower patch versions
This commit is contained in:
Megamouse 2020-06-19 15:38:51 +02:00
parent d3c6472c0f
commit bf978ac8ca
5 changed files with 80 additions and 23 deletions

View file

@ -102,10 +102,10 @@ public:
static void save_config(const patch_map& patches_map, bool enable_legacy_patches);
// Save a patch file
static bool save_patches(const patch_map& patches, const std::string& path);
static bool save_patches(const patch_map& patches, const std::string& path, std::stringstream* log_messages = nullptr);
// Create or append patches to a file
static bool import_patches(const patch_map& patches, const std::string& path);
static bool import_patches(const patch_map& patches, const std::string& path, std::stringstream* log_messages = nullptr);
// Load patch_config.yml
static patch_config_map load_config(bool& enable_legacy_patches);