[ scummvm-Bugs-2198456 ] FS: Cannot add a subfolder to a non-existing folder
SourceForge.net
noreply at sourceforge.net
Sun Oct 26 19:52:23 CET 2008
Bugs item #2198456, was opened at 2008-10-26 20:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2198456&group_id=37116
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unknown Crash/Other
Group: All Games
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Filippos Karapetis (thebluegr)
Assigned to: Nobody/Anonymous (nobody)
Summary: FS: Cannot add a subfolder to a non-existing folder
Initial Comment:
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?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2198456&group_id=37116
More information about the Scummvm-tracker
mailing list