patch_manager: check config values before applying them

This commit is contained in:
Megamouse 2023-02-19 20:34:21 +01:00
parent a29dc3893f
commit f0c8f6d47b
3 changed files with 34 additions and 2 deletions

View file

@ -101,6 +101,8 @@ public:
{
return value == other.value && min == other.min && max == other.max && type == other.type && allowed_values == other.allowed_values;
}
void set_and_check_value(f64 new_value, const std::string& name);
};
struct patch_config_values