comparison src/core/config.cc @ 198:bc1ae1810855

dep/animia: switch from using classes to global functions the old idea was ok, but sort of hackish; this method doesn't use classes at all, and this way (especially important!) we can do wayland stuff AND x11 at the same time, which wasn't really possible without stupid workarounds in the other method
author Paper <mrpapersonic@gmail.com>
date Sun, 24 Dec 2023 02:59:42 -0500
parents 62e336597bb7
children 53211cb1e7f5
comparison
equal deleted inserted replaced
197:c4ca035c565d 198:bc1ae1810855
83 enabled = INI::GetIniValue<bool>(ini, "Recognition/Browsers", player.name, true); 83 enabled = INI::GetIniValue<bool>(ini, "Recognition/Browsers", player.name, true);
84 break; 84 break;
85 } 85 }
86 } 86 }
87 87
88 /* ew */
89 locale.SetActiveLocale(QLocale(Strings::ToQString(INI::GetIniValue<std::string>(ini, "General", "Locale", "en_US")))); 88 locale.SetActiveLocale(QLocale(Strings::ToQString(INI::GetIniValue<std::string>(ini, "General", "Locale", "en_US"))));
90 89
91 theme.SetTheme(Translate::ToTheme(INI::GetIniValue<std::string>(ini, "Appearance", "Theme", "Default"))); 90 theme.SetTheme(Translate::ToTheme(INI::GetIniValue<std::string>(ini, "Appearance", "Theme", "Default")));
92 91
93 return 0; 92 return 0;