mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 14:51:08 +00:00
Localise scripts + silene debug spam in options menu
This commit is contained in:
parent
636c069403
commit
de69273229
4 changed files with 22 additions and 21 deletions
|
@ -535,6 +535,18 @@ void UserSettings::load(bool doApply, const std::string &overrideFile)
|
|||
|
||||
//clearInputCodeMap();
|
||||
|
||||
if (system.locale.empty())
|
||||
{
|
||||
std::string loc = getSystemLocale();
|
||||
debugLog("Using autodetected system locale: " + loc);
|
||||
setUsedLocale(loc);
|
||||
}
|
||||
else
|
||||
{
|
||||
debugLog("Using user config locale: " + system.locale);
|
||||
setUsedLocale(system.locale);
|
||||
}
|
||||
|
||||
if (doApply)
|
||||
apply();
|
||||
}
|
||||
|
@ -574,18 +586,6 @@ void UserSettings::apply()
|
|||
|
||||
core->settings.prebufferSounds = audio.prebuffer;
|
||||
|
||||
if (system.locale.empty())
|
||||
{
|
||||
std::string loc = getSystemLocale();
|
||||
debugLog("Using autodetected system locale: " + loc);
|
||||
setUsedLocale(loc);
|
||||
}
|
||||
else
|
||||
{
|
||||
debugLog("Using user config locale: " + system.locale);
|
||||
setUsedLocale(system.locale);
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue