patch manager: Add patch removal to context menu

Also avoid saving empty patch maps
This commit is contained in:
Megamouse 2020-06-19 19:47:51 +02:00
parent c4fe418f66
commit cd4ed11700
3 changed files with 73 additions and 5 deletions

View file

@ -74,6 +74,9 @@ public:
// Returns the directory in which patch_config.yml is located
static std::string get_patch_config_path();
// Returns the filepath for the imported_patch.yml
static std::string get_imported_patch_path();
// Load from file and append to specified patches map
// Example entry:
//
@ -108,6 +111,9 @@ public:
// Create or append patches to a file
static bool import_patches(const patch_map& patches, const std::string& path, std::stringstream* log_messages = nullptr);
// Remove a patch from a file
static bool remove_patch(const patch_info& info);
// Load patch_config.yml
static patch_config_map load_config(bool& enable_legacy_patches);