Rewrite prefs loading/saving to use Cocoa

This commit is contained in:
2014-04-14 02:55:22 -04:00
parent a76755d961
commit eeb5ca0f06
4 changed files with 108 additions and 246 deletions

27
osx/tools/prefs.hpp Normal file
View File

@@ -0,0 +1,27 @@
//
// 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);
void set_pref(std::string keypath, int value);
int get_int_pref(std::string keypath);
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