patch_manager: warning for incompatible patches (#8535)

* patch_manager: warning for incompatible patches

This will open a warning dialog whenever the patch manager is opened and incompatible patches are detected.

* Apply suggestions from code review

Co-authored-by: Bird Egop <sampletext32@bk.ru>

Co-authored-by: Bird Egop <sampletext32@bk.ru>
This commit is contained in:
Megamouse 2020-06-30 21:35:15 +02:00 committed by GitHub
parent bd14429f20
commit 55e907385b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 7 deletions

View file

@ -6,8 +6,6 @@
LOG_CHANNEL(patch_log);
static const std::string patch_engine_version = "1.2";
namespace config_key
{
static const std::string enable_legacy_patches = "Enable Legacy Patches";
@ -84,6 +82,11 @@ std::string patch_engine::get_patch_config_path()
#endif
}
std::string patch_engine::get_patches_path()
{
return fs::get_config_dir() + "patches/";
}
std::string patch_engine::get_imported_patch_path()
{
return fs::get_config_dir() + "patches/imported_patch.yml";