diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 16:54:27 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 16:54:27 +0200 |
commit | d7531327d11feaf88eb472dc2d31c47a1e8e016b (patch) | |
tree | 16850711223e2cb7a5f09fe7d92821c666fb237e /engines | |
parent | 167c9f534b2918fdd2e08fd535d13d5dad9b6de0 (diff) | |
download | scummvm-rg350-d7531327d11feaf88eb472dc2d31c47a1e8e016b.tar.gz scummvm-rg350-d7531327d11feaf88eb472dc2d31c47a1e8e016b.tar.bz2 scummvm-rg350-d7531327d11feaf88eb472dc2d31c47a1e8e016b.zip |
WINTERMUTE: Check results while traversing file-system.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/base_file_manager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/wintermute/base/base_file_manager.cpp b/engines/wintermute/base/base_file_manager.cpp index cc018063f6..4c7c31562d 100644 --- a/engines/wintermute/base/base_file_manager.cpp +++ b/engines/wintermute/base/base_file_manager.cpp @@ -192,7 +192,9 @@ bool BaseFileManager::registerPackages() { Common::FSList files; for (Common::FSList::iterator it = _packagePaths.begin(); it != _packagePaths.end(); ++it) { debugC(kWintermuteDebugFileAccess, "Should register folder: %s %s", (*it).getPath().c_str(), (*it).getName().c_str()); - (*it).getChildren(files, Common::FSNode::kListFilesOnly); + if ((*it).getChildren(files, Common::FSNode::kListFilesOnly)) { + warning("getChildren() failed for path: %s", (*it).getDisplayName().c_str()); + } for (Common::FSList::iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) { if (!fileIt->getName().hasSuffix(".dcp")) { continue; |