Infrastructure username handling: Add separate username, pick Nickname as default if valid.

This commit is contained in:
Henrik Rydgård committed 2025-01-07 17:43:02 +01:00
1 parent 41e156a326
commit 01b06b76c9
11 files changed
+103 -35

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ bool ConfigSetting::Get(const Section *section) const {
case TYPE_FLOAT:
return section->Get(iniKey_, ptr_.f, cb_.f ? cb_.f() : default_.f);
case TYPE_STRING:
return section->Get(iniKey_, ptr_.s, cb_.s ? cb_.s() : default_.s);
return section->Get(iniKey_, ptr_.s, cb_.s ? cb_.s().c_str() : default_.s);
case TYPE_TOUCH_POS:
{
ConfigTouchPos defaultTouchPos = cb_.touchPos ? cb_.touchPos() : default_.touchPos;