func:添加选择文件功能并自动记录
This commit is contained in:
@@ -16,10 +16,18 @@ bool ConfigIni::set_work_exe(const std::string& dir)
|
||||
if (!parse_ini()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void ConfigIni::set_xml_path(const std::string& path)
|
||||
{
|
||||
if (ini_.IsEmpty()) {
|
||||
return ;
|
||||
}
|
||||
ini_.SetValue("Basic", "xml_path", path.c_str());
|
||||
ini_.SaveFile(ini_path_.c_str());
|
||||
}
|
||||
|
||||
OprBase ConfigIni::get_config()
|
||||
{
|
||||
return opr_base_;
|
||||
|
||||
Reference in New Issue
Block a user