| 570 | } |
| 571 | |
| 572 | void 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 | |
| 598 | void ModInfoDialog::setTabsColors() |
| 599 | { |
nothing calls this directly
no test coverage detected