MCPcopy Create free account
hub / github.com/ccMSC/ckb / scan

Method scan

src/ckb/animscript.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void AnimScript::scan(){
38 QDir dir(path());
39 foreach(AnimScript* script, scripts)
40 delete script;
41 scripts.clear();
42 foreach(QString file, dir.entryList(QDir::Files | QDir::Executable)){
43 AnimScript* script = new AnimScript(qApp, dir.absoluteFilePath(file));
44 if(script->load() && !scripts.contains(script->_info.guid))
45 scripts[script->_info.guid] = script;
46 else
47 delete script;
48 }
49}
50
51QList<const AnimScript*> AnimScript::list(){
52 // Gather the animations into an alphabetically-sorted list

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected