Files
oboe/osx/tools/prefs.hpp
Celtic Minstrel 45494d0c2e 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
2014-04-14 15:51:25 -04:00

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