mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-12 13:31:50 +00:00
NEW:optimize printer config files
jira:[STUDIO-4051] Change-Id: I77cb16e62546eae63a73f8d12d7f11f496555197
This commit is contained in:
@@ -202,6 +202,11 @@ const std::string& var_dir()
|
||||
|
||||
std::string var(const std::string &file_name)
|
||||
{
|
||||
boost::system::error_code ec;
|
||||
if (boost::filesystem::exists(file_name, ec)) {
|
||||
return file_name;
|
||||
}
|
||||
|
||||
auto file = (boost::filesystem::path(g_var_dir) / file_name).make_preferred();
|
||||
return file.string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user