mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Next step of Perl to C++ configuration layer conversion.
This commit is contained in:
parent
337f6c5808
commit
95c284c764
15 changed files with 414 additions and 394 deletions
|
@ -16,9 +16,9 @@ public:
|
|||
// Override missing or keys with their defaults.
|
||||
void set_defaults();
|
||||
|
||||
// Load the config.ini from a user profile directory (or a datadir, if configured).
|
||||
// Load the slic3r.ini from a user profile directory (or a datadir, if configured).
|
||||
void load();
|
||||
// Store the config.ini into a user profile directory (or a datadir, if configured).
|
||||
// Store the slic3r.ini into a user profile directory (or a datadir, if configured).
|
||||
void save();
|
||||
|
||||
// Does this config need to be saved?
|
||||
|
@ -62,6 +62,9 @@ public:
|
|||
bool has(const std::string &key) const
|
||||
{ return this->has("", key); }
|
||||
|
||||
void clear_section(const std::string §ion)
|
||||
{ m_storage[section].clear(); }
|
||||
|
||||
// return recent/skein_directory or recent/config_directory or empty string.
|
||||
std::string get_last_dir() const;
|
||||
void update_config_dir(const std::string &dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue