MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / cleanStructure

Method cleanStructure

src/directoryrefresher.cpp:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void DirectoryRefresher::cleanStructure(DirectoryEntry* structure)
192{
193 static const wchar_t* files[] = {L"meta.ini", L"readme.txt"};
194 for (int i = 0; i < sizeof(files) / sizeof(wchar_t*); ++i) {
195 structure->removeFile(files[i]);
196 }
197
198 static const wchar_t* dirs[] = {L"fomod"};
199 for (int i = 0; i < sizeof(dirs) / sizeof(wchar_t*); ++i) {
200 structure->removeDir(std::wstring(dirs[i]));
201 }
202}
203
204void DirectoryRefresher::addModBSAToStructure(DirectoryEntry* root,
205 const QString& modName, int priority,

Callers

nothing calls this directly

Calls 2

removeDirMethod · 0.80
removeFileMethod · 0.45

Tested by

no test coverage detected