FS: Cannot add a subfolder to a non-existing folder
|Reported by:||bluegr||Owned by:||lordhoto|
|Cc:||Game:||Inherit the Earth|
Using the latest SVN version of ScummVM under Windows XP and Vista
SAGA games may have several subfolders where files are placed (depending on the game version)
After the latest changes to the filesystem, the following no longer works: Common::File::addDefaultDirectory(_gameDataDir.getChild("game").getChild("itedata"));
This attempts to add the directory game/itedata, but the directory "game" does not exist, so adding "itedata" right after that references a null object. It used to work before
I'm not sure if the relevant piece of code should be changed, or if there should be some kind of checking in the FS level. If someone tries to add a folder "foo/bar", and "foo" does not exist, shouldn't there be some sort of check to avoid crashes?
Ticket imported from: #2198456. Ticket imported from: bugs/4003.