Config file does not need to exist
This commit is contained in:
parent
a216405879
commit
8230ca77ec
@ -14,7 +14,9 @@ sc::config_file::config_file(const std::string& prog_name, bool has_dir)
|
|||||||
} else {
|
} else {
|
||||||
cfg_path = _root + prog_name + "rc"; // standard "run control" file
|
cfg_path = _root + prog_name + "rc"; // standard "run control" file
|
||||||
}
|
}
|
||||||
_cfg = sc::parse_ini_file(cfg_path);
|
if (sc::file_exists(cfg_path)) {
|
||||||
|
_cfg = sc::parse_ini_file(cfg_path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string sc::config_file::path_for_file_name(const std::string& file_name) {
|
std::string sc::config_file::path_for_file_name(const std::string& file_name) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user