mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 23:01:42 +00:00
Fix for bug #2198456 "FS: Cannot add a subfolder to a non-existing folder".
svn-id: r34857
This commit is contained in:
parent
ea8e06fcf9
commit
fb9bd9f442
@ -37,7 +37,8 @@ void File::addDefaultDirectory(const String &directory) {
|
||||
}
|
||||
|
||||
void File::addDefaultDirectory(const FSNode &dir) {
|
||||
SearchMan.addDirectory(dir.getPath(), dir);
|
||||
if (dir.exists() && dir.isDirectory())
|
||||
SearchMan.addDirectory(dir.getPath(), dir);
|
||||
}
|
||||
|
||||
File::File()
|
||||
|
Loading…
x
Reference in New Issue
Block a user