diff options
Diffstat (limited to 'Source/Core/DolphinWX/MainAndroid.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/MainAndroid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/MainAndroid.cpp b/Source/Core/DolphinWX/MainAndroid.cpp index 2d42600ea1..cf3b96fa71 100644 --- a/Source/Core/DolphinWX/MainAndroid.cpp +++ b/Source/Core/DolphinWX/MainAndroid.cpp @@ -298,7 +298,7 @@ JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetConfig ini.Load(File::GetUserPath(D_CONFIG_IDX) + std::string(file)); std::string value; - ini.Get(section, key, &value, defaultValue); + ini.GetOrCreateSection(section)->Get(key, &value, defaultValue); return env->NewStringUTF(value.c_str()); } @@ -313,7 +313,7 @@ jstring jValue) ini.Load(File::GetUserPath(D_CONFIG_IDX) + std::string(file)); - ini.Set(section, key, value); + ini.GetOrCreateSection(section)->Set(key, value); ini.Save(File::GetUserPath(D_CONFIG_IDX) + std::string(file)); } |
