- 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
28 lines
557 B
C++
28 lines
557 B
C++
//
|
|
// prefs.hpp
|
|
// BoE
|
|
//
|
|
// Created by Celtic Minstrel on 14-04-14.
|
|
//
|
|
//
|
|
|
|
#ifndef BoE_prefs_hpp
|
|
#define BoE_prefs_hpp
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
void set_pref(std::string keypath, bool value);
|
|
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 fallback = 0);
|
|
|
|
void append_iarray_pref(std::string keypath, int value);
|
|
std::vector<int> get_iarray_pref(std::string keypath);
|
|
|
|
void clear_pref(std::string keypath);
|
|
bool sync_prefs();
|
|
|
|
#endif
|