Fixed handling strings in INI loader
This commit is contained in:
parent
14ea69a354
commit
f442b21667
@ -52,7 +52,7 @@ inline void LoadINI(std::map<std::string, std::any>* settings, const char* iniPa
|
|||||||
logger::info("[INI] {} = {}", k.pItem, iValue);
|
logger::info("[INI] {} = {}", k.pItem, iValue);
|
||||||
} else if (k.pItem[0] == 's') {
|
} else if (k.pItem[0] == 's') {
|
||||||
const char* sValue = ini.GetValue("", k.pItem, std::any_cast<const char*>(settings->at(k.pItem)));
|
const char* sValue = ini.GetValue("", k.pItem, std::any_cast<const char*>(settings->at(k.pItem)));
|
||||||
settings->insert_or_assign(k.pItem, sValue);
|
settings->insert_or_assign(k.pItem, std::string(sValue));
|
||||||
logger::info("[INI] {} = {}", k.pItem, sValue);
|
logger::info("[INI] {} = {}", k.pItem, sValue);
|
||||||
} else {
|
} else {
|
||||||
bool bValue = ini.GetBoolValue("", k.pItem, std::any_cast<bool>(settings->at(k.pItem)));
|
bool bValue = ini.GetBoolValue("", k.pItem, std::any_cast<bool>(settings->at(k.pItem)));
|
||||||
|
Loading…
Reference in New Issue
Block a user