Switch to JSON.

Custom Path's and Colors needs to be redo for this.
This commit is contained in:
VoltZ
2019-11-10 15:53:04 +01:00
parent 18733e7a9b
commit 08b962b560
8 changed files with 111 additions and 458 deletions
+14 -3
View File
@@ -30,14 +30,25 @@
#include <string>
namespace Config {
// [UI]
extern int lang; // The current Language.
extern int Color1, Color2, Color3, TxtColor, SelectedColor, UnselectedColor; // Colors!
extern std::string ScriptPath;
void loadConfig();
void saveConfig();
void load();
void save();
void initializeNewConfig();
bool getBool(const std::string &key);
void setBool(const std::string &key, bool v);
int getInt(const std::string &key);
void setInt(const std::string &key, int v);
std::string getString(const std::string &key);
void setString(const std::string &key, const std::string &v);
int getLang(const std::string &key);
}
#endif