diff options
author | David Corrales | 2007-06-05 21:02:35 +0000 |
---|---|---|
committer | David Corrales | 2007-06-05 21:02:35 +0000 |
commit | 3b96c7fad54ff7f5000667be494e50e7ca11e69a (patch) | |
tree | 265263a7fc44ca51c2391e929e7c4fd0da676315 /engines/agi/agi_v3.cpp | |
parent | 716bcd0b2bcd4d04489bc2fc23a948fad3e2c02a (diff) | |
download | scummvm-rg350-3b96c7fad54ff7f5000667be494e50e7ca11e69a.tar.gz scummvm-rg350-3b96c7fad54ff7f5000667be494e50e7ca11e69a.tar.bz2 scummvm-rg350-3b96c7fad54ff7f5000667be494e50e7ca11e69a.zip |
Renamed methods in the FilesystemNode class to match the AbstractFSNode implementations.
Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode.
svn-id: r27113
Diffstat (limited to 'engines/agi/agi_v3.cpp')
-rw-r--r-- | engines/agi/agi_v3.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/agi_v3.cpp b/engines/agi/agi_v3.cpp index 3e90dc11f1..33f670e779 100644 --- a/engines/agi/agi_v3.cpp +++ b/engines/agi/agi_v3.cpp @@ -52,14 +52,14 @@ int AgiLoader_v3::detectGame() { FSList fslist; FilesystemNode dir(ConfMan.get("path")); - if (!dir.listDir(fslist, FilesystemNode::kListFilesOnly)) { - warning("AgiEngine: invalid game path '%s'", dir.path().c_str()); + if (!dir.getChildren(fslist, FilesystemNode::kListFilesOnly)) { + warning("AgiEngine: invalid game path '%s'", dir.getPath().c_str()); return errInvalidAGIFile; } for (FSList::const_iterator file = fslist.begin(); file != fslist.end() && !found; ++file) { - Common::String f = file->name(); + Common::String f = file->getName(); f.toLowercase(); if (f.hasSuffix("vol.0")) { |