MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / setParticleFilename

Function setParticleFilename

test/Particles.cpp:264–271  ·  view source on GitHub ↗

Filename is the leaf name, relative to the particles/ folder

Source from the content-addressed store, hash-verified

262
263// Filename is the leaf name, relative to the particles/ folder
264inline 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
273inline void expectParticleIsPresentInFile(const particles::IParticleDef::Ptr& decl, const std::string& path, bool expectPresent)
274{

Callers 1

TEST_FFunction · 0.85

Calls 5

getFilenameFunction · 0.85
setFileInfoMethod · 0.80
fullPathMethod · 0.80
FileInfoClass · 0.50
setFilenameMethod · 0.45

Tested by

no test coverage detected