overlay_params: Fix not using mangohud defaults with no conf present

pull/1160/head
Alessandro Toia 7 months ago
parent 29058a09bb
commit 81941faa8c

@ -929,13 +929,16 @@ parse_overlay_config(struct overlay_params *params,
for (const auto& option : HUDElements.options) {
SPDLOG_DEBUG("Param: '{}' = '{}'", option.first, option.second);
}
if (params->enabled[OVERLAY_PARAM_ENABLED_legacy_layout]) {
HUDElements.legacy_elements();
} else {
if (params->enabled[OVERLAY_PARAM_ENABLED_legacy_layout]) {
HUDElements.legacy_elements();
} else {
for (auto& option : HUDElements.options) {
HUDElements.sort_elements(option);
}
}
// Needs ImGui context but it is null here for OpenGL so just note it and update somewhere else
HUDElements.colors.update = true;
if (params->no_small_font)

Loading…
Cancel
Save