diff options
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi_v3.cpp | 6 | ||||
-rw-r--r-- | engines/agi/detection.cpp | 2 |
2 files changed, 4 insertions, 4 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")) { diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 9f6f0e7156..b7f8c12730 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -1885,7 +1885,7 @@ Common::ADGameDescList fallbackDetector(const FSList *fslist) { // First grab all filenames for (FSList::const_iterator file = fslist->begin(); file != fslist->end(); ++file) { if (file->isDirectory()) continue; - tstr = file->name(); + tstr = file->getName(); tstr.toLowercase(); allFiles[tstr] = true; |