diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-06-22 17:21:45 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-06-22 17:21:45 +0200 |
| commit | 5dff5773398fab79ca60a0fad4aa90abf683d366 (patch) | |
| tree | 466db879b91b173e783dc4c524ad237d37c60f4d /Source/Core/DolphinWX/Main.cpp | |
| parent | 86d64553910c438031e2e8359f871d31f1caa12b (diff) | |
| parent | f05d3f6e5d6da8be530c0cd4ffaaec0382240ec5 (diff) | |
Merge pull request #500 from lioncash/ini
Use only section-based ini reading.
Diffstat (limited to 'Source/Core/DolphinWX/Main.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp index 9a46de1963..0891c3b74f 100644 --- a/Source/Core/DolphinWX/Main.cpp +++ b/Source/Core/DolphinWX/Main.cpp @@ -413,7 +413,7 @@ void DolphinApp::InitLanguageSupport() IniFile ini; ini.Load(File::GetUserPath(F_DOLPHINCONFIG_IDX)); - ini.Get("Interface", "Language", &language, wxLANGUAGE_DEFAULT); + ini.GetOrCreateSection("Interface")->Get("Language", &language, wxLANGUAGE_DEFAULT); // Load language if possible, fall back to system default otherwise if (wxLocale::IsAvailable(language)) |
