Hotfix: fix creating new game config and loading experimental tab (#3600)

This commit is contained in:
rainmakerv2
2025-09-14 21:31:29 +08:00
committed by GitHub
parent fb090dc90f
commit c106a98bd6
2 changed files with 3 additions and 8 deletions

View File

@@ -100,12 +100,6 @@ public:
void setTomlValue(toml::ordered_value& data, const std::string& header, const std::string& key,
bool is_game_specific = false) {
if (is_game_specific) {
if (game_specific_value == std::nullopt) {
fmt::print("Attempted to save std::nullopt value to {}-{}, matching config entry "
"may not be correctly set-up\n",
header, key);
return;
}
data[header][key] = game_specific_value.value_or(base_value);
game_specific_value = std::nullopt;
} else {