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/sword1 | |
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/sword1')
-rw-r--r-- | engines/sword1/sword1.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 97e518421c..db978cd33e 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -107,15 +107,15 @@ GameDescriptor Engine_SWORD1_findGameID(const char *gameid) { void Sword1CheckDirectory(const FSList &fslist, bool *filesFound) { for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { if (!file->isDirectory()) { - const char *fileName = file->name().c_str(); + const char *fileName = file->getName().c_str(); for (int cnt = 0; cnt < NUM_FILES_TO_CHECK; cnt++) if (scumm_stricmp(fileName, g_filesToCheck[cnt]) == 0) filesFound[cnt] = true; } else { for (int cnt = 0; cnt < ARRAYSIZE(g_dirNames); cnt++) - if (scumm_stricmp(file->name().c_str(), g_dirNames[cnt]) == 0) { + if (scumm_stricmp(file->getName().c_str(), g_dirNames[cnt]) == 0) { FSList fslist2; - if (file->listDir(fslist2, FilesystemNode::kListFilesOnly)) + if (file->getChildren(fslist2, FilesystemNode::kListFilesOnly)) Sword1CheckDirectory(fslist2, filesFound); } } |