mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2025-10-30 08:02:29 +00:00
call change callbacks when reverting temp config + report value updates for render
This commit is contained in:
parent
e26f603fc2
commit
beb7310549
1 changed files with 9 additions and 1 deletions
|
|
@ -547,8 +547,16 @@ void Config::revert_temp_config() {
|
||||||
modified_options.clear();
|
modified_options.clear();
|
||||||
|
|
||||||
for (const auto& option : schema.options) {
|
for (const auto& option : schema.options) {
|
||||||
temp_storage.value_map[option.id] = get_option_value(option.id);
|
auto temp_value = get_temp_option_value(option.id);
|
||||||
|
auto original_value = get_option_value(option.id);
|
||||||
|
temp_storage.value_map[option.id] = original_value;
|
||||||
|
try_call_option_change_callback(option.id, original_value, temp_value, OptionChangeContext::Temporary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (size_t option_index = 0; option_index < schema.options.size(); option_index++) {
|
||||||
|
report_config_option_update(option_index, ConfigOptionUpdateType::Value);
|
||||||
|
}
|
||||||
|
|
||||||
derive_all_config_option_dependencies();
|
derive_all_config_option_dependencies();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue