mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-27 03:55:42 +00:00
No reason for langValuesMapping to be a member variable in Config.
This commit is contained in:
parent
4d4fb98692
commit
03735e297b
@ -84,7 +84,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
if (i18nrepo.IniExists(langRegion))
|
||||
defaultLangRegion = langRegion;
|
||||
// TODO: Be smart about same language, different country
|
||||
langValuesMapping = GetLangValuesMapping();
|
||||
auto langValuesMapping = GetLangValuesMapping();
|
||||
if (!defaultLangRegion.empty()) {
|
||||
if (langValuesMapping.find(defaultLangRegion) != langValuesMapping.end()) {
|
||||
defaultLang = langValuesMapping[defaultLangRegion].second;
|
||||
|
@ -307,7 +307,6 @@ private:
|
||||
std::string controllerIniFilename_;
|
||||
std::vector<std::string> searchPath_;
|
||||
std::string defaultPath_;
|
||||
std::map<std::string, std::pair<std::string, int>> langValuesMapping;
|
||||
};
|
||||
|
||||
// TODO: Find a better place for this.
|
||||
|
Loading…
x
Reference in New Issue
Block a user