std::string command = TEXT_EDITOR;
if(file != "")
- command += " \"" + file + "\" &";
+ command += " \"" + file + "\"";
+ command += " &";
return system(command.c_str());
}
std::string command = FILE_EXPLORER;
if(file != "")
- command += " \"" + file + "\" &";
+ command += " \"" + file + "\"";
+ command += " &";
return system(command.c_str());
}
{
std::string comm = command;
if(file != "")
- comm += " \"" + file + "\" &";
+ comm += " \"" + file + "\"";
+ comm += " &";
return system(comm.c_str());
}
int openCreaToolsTools()
{
+#ifdef _WIN32
+ std::string comm = "creaTools &";
+#else
std::string comm = "creaTools.sh &";
+#endif
+
return system(comm.c_str());
}
return true;
}
+ std::string stringify(const std::string& line)
+ {
+ std::string res;
+ for (int i = 0; i < line.size(); i++)
+ {
+ if(line[i] == '\\')
+ res.push_back('\\');
+ if(line[i] == '\"')
+ res.push_back('\\');
+ res.push_back(line[i]);
+ }
+ return res;
+ }
+
}