summaryrefslogtreecommitdiff
path: root/src/directoryrefresher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/directoryrefresher.cpp')
-rw-r--r--src/directoryrefresher.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp
index 70bcf5b6..43e13a37 100644
--- a/src/directoryrefresher.cpp
+++ b/src/directoryrefresher.cpp
@@ -93,6 +93,7 @@ void DirectoryRefresher::refresh()
//TODO i is the priority here, where higher = more important. the input vector is also sorted by priority but inverted!
for (int i = 1; iter != m_Mods.end(); ++iter, ++i) {
QString modName = std::get<0>(*iter);
+qDebug("load files for mod %s", qPrintable(modName));
try {
addModToStructure(m_DirectoryStructure, modName, i, std::get<1>(*iter));
} catch (const std::exception &e) {
@@ -102,11 +103,14 @@ void DirectoryRefresher::refresh()
}
std::wstring dataDirectory = GameInfo::instance().getGameDirectory() + L"\\data";
+qDebug("load files for data folder");
m_DirectoryStructure->addFromOrigin(L"data", dataDirectory, 0);
emit progress(100);
+qDebug("cleanup structure");
cleanStructure(m_DirectoryStructure);
+qDebug("all done");
emit refreshed();
}