aboutsummaryrefslogtreecommitdiff
path: root/common/archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/archive.cpp')
-rw-r--r--common/archive.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/archive.cpp b/common/archive.cpp
index 586f3c4fd1..ae89a9edcf 100644
--- a/common/archive.cpp
+++ b/common/archive.cpp
@@ -279,9 +279,12 @@ void SearchManager::clear() {
if (g_system)
g_system->addSysArchivesToSearchSet(*this, -1);
+#ifndef __ANDROID__
// Add the current dir as a very last resort.
// See also bug #2137680.
+ // But don't do this for Android platform, since it may lead to crashes
addDirectory(".", ".", -2);
+#endif
}
DECLARE_SINGLETON(SearchManager);