From 3623a94927a3d01b6df5c75f42af13a348327c2a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 12 May 2006 21:41:54 +0000 Subject: Added the new AbstractFilesystemNode::getCurrentDirectory() method. Also changed the semantics of the FilesystemNode constructors (see also the relevant doxygen comments for explanations). This also fixes bug #1485941. svn-id: r22424 --- engines/scumm/plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp index 7fcf231d09..40d8127c06 100644 --- a/engines/scumm/plugin.cpp +++ b/engines/scumm/plugin.cpp @@ -1330,9 +1330,7 @@ PluginError Engine_SCUMM_create(OSystem *syst, Engine **engine) { FSList fslist; - FilesystemNode dir; - if (ConfMan.hasKey("path") ) - dir = FilesystemNode(ConfMan.get("path")); + FilesystemNode dir(ConfMan.get("path")); if (!dir.listDir(fslist, FilesystemNode::kListFilesOnly)) { warning("ScummEngine: invalid game path '%s'", dir.path().c_str()); return kInvalidPathError; -- cgit v1.2.3