Filename is the leaf name, relative to the particles/ folder
| 262 | |
| 263 | // Filename is the leaf name, relative to the particles/ folder |
| 264 | inline void setParticleFilename(const particles::IParticleDef::Ptr& decl, const std::string& filename) |
| 265 | { |
| 266 | auto fileInfo = vfs::FileInfo("particles/", filename, vfs::Visibility::NORMAL); |
| 267 | decl->setFileInfo(fileInfo); |
| 268 | |
| 269 | // Legacy invocation |
| 270 | decl->setFilename(os::getFilename(fileInfo.fullPath())); |
| 271 | } |
| 272 | |
| 273 | inline void expectParticleIsPresentInFile(const particles::IParticleDef::Ptr& decl, const std::string& path, bool expectPresent) |
| 274 | { |
no test coverage detected