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

Method feedFiles

src/modinfodialog.cpp:572–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void ModInfoDialog::feedFiles(std::vector<TabInfo*>& interestedTabs)
573{
574 const auto rootPath = m_mod->absolutePath();
575 if (rootPath.isEmpty()) {
576 return;
577 }
578
579 const fs::path fsPath(rootPath.toStdWString());
580
581 for (const auto& entry : fs::recursive_directory_iterator(fsPath)) {
582 if (!entry.is_regular_file()) {
583 // skip directories
584 continue;
585 }
586
587 const auto filePath = QString::fromStdWString(entry.path().native());
588
589 // for each tab
590 for (auto* tabInfo : interestedTabs) {
591 if (tabInfo->tab->feedFile(rootPath, filePath)) {
592 break;
593 }
594 }
595 }
596}
597
598void ModInfoDialog::setTabsColors()
599{

Callers

nothing calls this directly

Calls 3

absolutePathMethod · 0.45
isEmptyMethod · 0.45
feedFileMethod · 0.45

Tested by

no test coverage detected