| 66 | } |
| 67 | |
| 68 | void CopyToResources(QString const & name, QString const & input, QString const & newName) |
| 69 | { |
| 70 | QString const resourceDir = GetPlatform().ResourcesDir().c_str(); |
| 71 | if (!CopyFile(JoinPathQt({input, name}), JoinPathQt({resourceDir, newName.isEmpty() ? name : newName}))) |
| 72 | throw std::runtime_error(std::string("Cannot copy file ") + name.toStdString() + " from " + input.toStdString()); |
| 73 | } |
| 74 | |
| 75 | QString JoinPathQt(std::initializer_list<QString> folders) |
| 76 | { |
no test coverage detected