summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-14 09:11:52 +0100
committerGitHub <noreply@github.com>2021-01-14 09:11:52 +0100
commit899308b31d541e78a3e4395bf33cd66c5ec4f769 (patch)
treee360f819bbe96e7cc30626a53395c466967e8e0f /src/organizercore.cpp
parent34f7ae24501f75d5a74a09b6af939db6edaf6f1c (diff)
parent853db4a60a0a701b92d3eb7be7c3a0d8d8f6f2b1 (diff)
Merge pull request #1360 from Holt59/organizercore-cleaning
OrganizerCore cleaning.
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 90771c0a..bbf6029b 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1016,22 +1016,6 @@ ModList *OrganizerCore::modList()
return &m_ModList;
}
-QStringList OrganizerCore::modsSortedByProfilePriority(Profile *profile) const
-{
- QStringList res;
- for (int i = profile->getPriorityMinimum();
- i < profile->getPriorityMinimum() + (int)profile->numRegularMods();
- ++i) {
- int modIndex = profile->modIndexByPriority(i);
- auto modInfo = ModInfo::getByIndex(modIndex);
- if (!modInfo->hasFlag(ModInfo::FLAG_OVERWRITE) &&
- !modInfo->hasFlag(ModInfo::FLAG_BACKUP)) {
- res.push_back(ModInfo::getByIndex(modIndex)->internalName());
- }
- }
- return res;
-}
-
bool OrganizerCore::previewFileWithAlternatives(
QWidget* parent, QString fileName, int selectedOrigin)
{
@@ -1500,7 +1484,7 @@ IOrganizer const* OrganizerCore::managedGameOrganizer() const
std::vector<QString> OrganizerCore::enabledArchives()
{
std::vector<QString> result;
- if (m_ArchiveParsing) {
+ if (settings().archiveParsing()) {
QFile archiveFile(m_CurrentProfile->getArchivesFileName());
if (archiveFile.open(QIODevice::ReadOnly)) {
while (!archiveFile.atEnd()) {