You can read and reply to posts and download all mods without registering.
We're an independent and non-profit fan-site. Find out more about us here.
std::list<std::string> allSubDirs;wxString nextDirName;wxString currentDirName;bool isDirFound = dir.GetFirst(&nextDirName, wxEmptyString, wxDIR_DIRS | wxDIR_HIDDEN);while (isDirFound){ currentDirName = wxString(nextDirName).MakeLower(); // go through all folders and collect for later case-sensitive check allSubDirs.push_back(currentDirName.ToStdString()); // check existence of any data directory for (auto& dirName : dataDirectories_) { if (dirName.compare(currentDirName) == 0) mod.setHasOther(true); } isDirFound = dir.GetNext(&nextDirName);}// Wine-only checkif (!allSubDirs.empty()) { unsigned int dirNumberIncludingNonUnique = allSubDirs.size(); allSubDirs.unique(); if (dirNumberIncludingNonUnique != allSubDirs.size()) mod.setHasDuplicateFolders(true);}
very simple, two maps with the same filename are active = warning.
Does it already warn on multiple mods with a *.GAM file?