Fairly big refactor...
This commit is contained in:
@ -4,9 +4,23 @@
|
||||
|
||||
namespace dropshell {
|
||||
|
||||
// Configuration functions
|
||||
bool get_config_path(std::string& path);
|
||||
bool load_config();
|
||||
bool is_config_loaded();
|
||||
class config {
|
||||
public:
|
||||
config();
|
||||
~config();
|
||||
bool load_config();
|
||||
void save_config();
|
||||
|
||||
bool is_config_set() const;
|
||||
|
||||
bool get_local_config_directory(std::string& path) const;
|
||||
void init_local_config_directory(const std::string& path);
|
||||
|
||||
private:
|
||||
std::string local_config_directory;
|
||||
};
|
||||
|
||||
|
||||
config *get_global_config();
|
||||
|
||||
} // namespace dropshell
|
Reference in New Issue
Block a user