| 827 | } |
| 828 | |
| 829 | QStringList 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 | |
| 844 | MOBase::IModInterface* ModList::getMod(const QString& name) const |
| 845 | { |
no test coverage detected