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

Method enabledArchives

src/organizercore.cpp:1525–1538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525std::vector<QString> OrganizerCore::enabledArchives()
1526{
1527 std::vector<QString> result;
1528 if (settings().archiveParsing()) {
1529 QFile archiveFile(m_CurrentProfile->getArchivesFileName());
1530 if (archiveFile.open(QIODevice::ReadOnly)) {
1531 while (!archiveFile.atEnd()) {
1532 result.push_back(QString::fromUtf8(archiveFile.readLine()).trimmed());
1533 }
1534 archiveFile.close();
1535 }
1536 }
1537 return result;
1538}
1539
1540void OrganizerCore::refreshDirectoryStructure()
1541{

Callers

nothing calls this directly

Calls 4

archiveParsingMethod · 0.80
getArchivesFileNameMethod · 0.80
openMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected