summaryrefslogtreecommitdiff
path: root/Source/Android/jni/NativeConfig.cpp
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-12-24 12:45:09 -0500
committerGitHub <noreply@github.com>2020-12-24 12:45:09 -0500
commit464bc80482f7d7b1ed7a0715995204eaee85f7ff (patch)
tree0d006aa77c20f83fa1dcdc89e493716ca6fcb49e /Source/Android/jni/NativeConfig.cpp
parent1d489b3fd5cdcb9f3da2fd07123d6664ef9fa9a6 (diff)
parent6f05c400130052cdc92319c4e04c3acfbf9f643f (diff)
Merge pull request #9356 from JosJuice/android-save-ingame-change
Android: Correctly save in-game settings changes to disk
Diffstat (limited to 'Source/Android/jni/NativeConfig.cpp')
-rw-r--r--Source/Android/jni/NativeConfig.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Android/jni/NativeConfig.cpp b/Source/Android/jni/NativeConfig.cpp
index 9de9a16358..14d7d4af3e 100644
--- a/Source/Android/jni/NativeConfig.cpp
+++ b/Source/Android/jni/NativeConfig.cpp
@@ -14,8 +14,9 @@
#include "jni/AndroidCommon/AndroidCommon.h"
constexpr jint LAYER_BASE_OR_CURRENT = 0;
-constexpr jint LAYER_LOCAL_GAME = 1;
-constexpr jint LAYER_ACTIVE = 2;
+constexpr jint LAYER_BASE = 1;
+constexpr jint LAYER_LOCAL_GAME = 2;
+constexpr jint LAYER_ACTIVE = 3;
static Config::Location GetLocation(JNIEnv* env, jstring file, jstring section, jstring key)
{
@@ -60,6 +61,10 @@ static std::shared_ptr<Config::Layer> GetLayer(jint layer, const Config::Locatio
layer_type = Config::LayerType::CurrentRun;
break;
+ case LAYER_BASE:
+ layer_type = Config::LayerType::Base;
+ break;
+
case LAYER_LOCAL_GAME:
layer_type = Config::LayerType::LocalGame;
break;