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

Method allModsByProfilePriority

src/modlist.cpp:829–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829QStringList ModList::allModsByProfilePriority(MOBase::IProfile* profile) const
830{
831 Profile* mo2Profile = profile == nullptr ? m_Organizer->currentProfile()
832 : static_cast<Profile*>(profile);
833
834 QStringList res;
835 for (auto& [priority, index] : mo2Profile->getAllIndexesByPriority()) {
836 auto modInfo = ModInfo::getByIndex(index);
837 if (!modInfo->isBackup() && !modInfo->isOverwrite()) {
838 res.push_back(modInfo->internalName());
839 }
840 }
841 return res;
842}
843
844MOBase::IModInterface* ModList::getMod(const QString& name) const
845{

Callers 1

Calls 4

currentProfileMethod · 0.80
isBackupMethod · 0.45
isOverwriteMethod · 0.45
internalNameMethod · 0.45

Tested by

no test coverage detected