MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / UpdatePrefabName

Method UpdatePrefabName

Source/Prefab.cpp:331–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void Prefab::UpdatePrefabName(std::string path)
332{
333 std::vector<std::string> tokens = ofSplitString(path, GetPathSeparator());
334 mPrefabName = tokens[tokens.size() - 1];
335 ofStringReplace(mPrefabName, ".pfb", "");
336}
337
338void Prefab::SaveLayout(ofxJSONElement& moduleInfo)
339{

Callers

nothing calls this directly

Calls 4

ofSplitStringFunction · 0.85
GetPathSeparatorFunction · 0.85
ofStringReplaceFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected