diff options
| author | Tannin <devnull@localhost> | 2014-05-05 18:24:15 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-05-05 18:24:15 +0200 |
| commit | 0eb1662a0eaf8eee680cab5b913fff3fcc9b8b2f (patch) | |
| tree | 4cccf64266f73d9acabc15e517abd510da79b582 /src/directoryrefresher.cpp | |
| parent | 164ec25a75a9d5b5fcbafbe321935ba37fe0885c (diff) | |
- very effective optimization to findfirstfile-calls
- several configuration files are now only saved to disk if the content actually changed.
This should also get rid of a problem where plugins.txt was re-written immediately after starting the game
(causing a conflict with the game)
- reduced "noise" from hook.dll
- removed some debugging messages
Diffstat (limited to 'src/directoryrefresher.cpp')
| -rw-r--r-- | src/directoryrefresher.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp index 43e13a37..70bcf5b6 100644 --- a/src/directoryrefresher.cpp +++ b/src/directoryrefresher.cpp @@ -93,7 +93,6 @@ 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) { @@ -103,14 +102,11 @@ qDebug("load files for mod %s", qPrintable(modName)); } 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(); } |
