mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Switch to JSON.
Custom Path's and Colors needs to be redo for this.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user