aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2008-10-02 17:52:29 +0000
committerMax Horn2008-10-02 17:52:29 +0000
commitd269a84e03d026274b159fb28a216148d763d88f (patch)
tree73ad5e45c26499b7248a9c3582793e55a7b50452 /common
parent3248906156d6fa2bb01c4bfa527aaba379456705 (diff)
downloadscummvm-rg350-d269a84e03d026274b159fb28a216148d763d88f.tar.gz
scummvm-rg350-d269a84e03d026274b159fb28a216148d763d88f.tar.bz2
scummvm-rg350-d269a84e03d026274b159fb28a216148d763d88f.zip
Add the current dir to the global SearchSet, i.e. to SearchMan (this should fix the problems on Windows, and maybe other systems, see 'bug' #2137680)
svn-id: r34721
Diffstat (limited to 'common')
-rw-r--r--common/archive.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/archive.cpp b/common/archive.cpp
index e65a680d37..7f2b67eed0 100644
--- a/common/archive.cpp
+++ b/common/archive.cpp
@@ -352,6 +352,10 @@ void SearchManager::clear() {
// But we give them a lower priority than the default priority (which is 0),
// so that archives added by client code are searched first.
g_system->addSysArchivesToSearchSet(*this, -1);
+
+ // Add the current dir as a very last resort.
+ // See also bug #2137680.
+ add(".", ArchivePtr(new FSDirectory(".")), -2);
}
} // namespace Common