MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / getScripts

Function getScripts

src/scripts.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void getScripts(QMap<uint64_t, QString>& scripts)
70{
71 QString dir = getLuaDir();
72 QDirIterator it(dir, QDirIterator::NoIteratorFlags);
73 while (it.hasNext())
74 {
75 QFileInfo f = QFileInfo(it.next());
76 if (f.suffix() != "lua")
77 continue;
78 uint64_t hash = getScriptHash(f);
79 if (scripts.contains(hash))
80 qDebug() << "hash collision on: " << f.absoluteFilePath() << " and " << scripts.value(hash);
81 scripts.insert(hash, f.absoluteFilePath());
82 }
83}
84
85static bool validPos(int x, int y, int z)
86{

Callers 5

ConditionDialogMethod · 0.85
summaryMethod · 0.85
initMethod · 0.85

Calls 2

getLuaDirFunction · 0.85
getScriptHashFunction · 0.85

Tested by

no test coverage detected