mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Android: Correctly save in-game settings changes to disk
This commit is contained in:
parent
1d489b3fd5
commit
6f05c40013
3 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue