mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Fixed configuration & validate C++ ports.
This commit is contained in:
parent
5a99e694ce
commit
3bc79e80d5
8 changed files with 36 additions and 37 deletions
|
@ -320,6 +320,14 @@ void ConfigBase::setenv_()
|
|||
}
|
||||
|
||||
void ConfigBase::load(const std::string &file)
|
||||
{
|
||||
if (boost::iends_with(file, ".gcode") || boost::iends_with(file, ".g"))
|
||||
this->load_from_gcode(file);
|
||||
else
|
||||
this->load_from_ini(file);
|
||||
}
|
||||
|
||||
void ConfigBase::load_from_ini(const std::string &file)
|
||||
{
|
||||
namespace pt = boost::property_tree;
|
||||
pt::ptree tree;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue