1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

- more filesystem logging and possible fix for Win

- added missing destructor for loaders
- added missing override kewords
- added unused for now ARCHIVE_ZIP filetype
This commit is contained in:
Ivan Savenko
2013-07-29 10:08:02 +00:00
parent a314a81fd5
commit 9f7c89d5e3
9 changed files with 25 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ CFilesystemLoader::CFilesystemLoader(const std::string &mountPoint, const std::s
mountPoint(mountPoint),
fileList(listFiles(mountPoint, depth, initial))
{
logGlobal->traceStream() << "Filesystem loaded, " << fileList.size() << " files found";
}
std::unique_ptr<CInputStream> CFilesystemLoader::load(const ResourceID & resourceName) const
@@ -97,8 +98,8 @@ std::unordered_map<ResourceID, std::string> CFilesystemLoader::listFiles(const s
{
path.resize(it.level()+1);
path.back() = it->path().leaf().string();
// don't iterate into directory if depth limit reached OR into hidden directories (like .svn)
it.no_push(depth <= it.level() || it->path().leaf().string()[0] == '.');
// don't iterate into directory if depth limit reached
it.no_push(depth <= it.level());
type = EResType::DIRECTORY;
}