Fix some preferences having incorrect defaults and made all preferences save

- SDF preferences, which are also stored in the save file, are only saved if you're at the startup screen
- Also fixed a crash when saving prefs
This commit is contained in:
2014-04-14 03:29:38 -04:00
parent a53c16c4a0
commit 45494d0c2e
3 changed files with 36 additions and 10 deletions

View File

@@ -13,10 +13,10 @@
#include <vector>
void set_pref(std::string keypath, bool value);
bool get_bool_pref(std::string keypath);
bool get_bool_pref(std::string keypath, bool fallback = false);
void set_pref(std::string keypath, int value);
int get_int_pref(std::string keypath);
int get_int_pref(std::string keypath, int fallback = 0);
void append_iarray_pref(std::string keypath, int value);
std::vector<int> get_iarray_pref(std::string keypath);