diff options
author | Johannes Schickel | 2006-07-22 14:37:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-07-22 14:37:52 +0000 |
commit | 412db86dcfc3b29f436ae358c6dd2613ad6b9927 (patch) | |
tree | f16b524c2892dc917d3f146ad6ffde1201c47206 /engines | |
parent | ca366849eb47828674fdafe422cebc85e8bc49d9 (diff) | |
download | scummvm-rg350-412db86dcfc3b29f436ae358c6dd2613ad6b9927.tar.gz scummvm-rg350-412db86dcfc3b29f436ae358c6dd2613ad6b9927.tar.bz2 scummvm-rg350-412db86dcfc3b29f436ae358c6dd2613ad6b9927.zip |
Using FilesystemNode::name instead of FilesystemNode::displayName in the sword1 detector code too.
svn-id: r23556
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword1/sword1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index aa5ffafe2a..b20a49fce4 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -83,13 +83,13 @@ 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->displayName().c_str(); + const char *fileName = file->name().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->displayName().c_str(), g_dirNames[cnt]) == 0) { + if (scumm_stricmp(file->name().c_str(), g_dirNames[cnt]) == 0) { FSList fslist2; if (file->listDir(fslist2, FilesystemNode::kListFilesOnly)) Sword1CheckDirectory(fslist2, filesFound); |