summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/RustAndDust.java1
-rw-r--r--core/src/ch/asynk/rustanddust/menu/OptionsMenu.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java
index a02974b..c558c6f 100644
--- a/core/src/ch/asynk/rustanddust/RustAndDust.java
+++ b/core/src/ch/asynk/rustanddust/RustAndDust.java
@@ -121,6 +121,7 @@ public class RustAndDust extends Game
factory = new Factory(this);
config = new Config();
backend.init(this);
+ config.load(db.loadConfig());
state = State.NONE;
loadUiAssets();
diff --git a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
index f5b5182..b947203 100644
--- a/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/OptionsMenu.java
@@ -95,6 +95,7 @@ public class OptionsMenu extends Patch
game.config.debug = checkValues[0];
game.config.fxVolume = (fxVolumeIdx / 10.0f);
game.config.graphics = game.config.graphics.get(graphicsIdx);
+ game.db.storeConfig(game.config.unload());
return true;
}