diff options
| author | Johannes Schickel | 2006-07-22 14:39:54 +0000 |
|---|---|---|
| committer | Johannes Schickel | 2006-07-22 14:39:54 +0000 |
| commit | e5934c8f2158db82fb33ef8000c7eb94728214be (patch) | |
| tree | 06f9264804013ea5b5a70917e1b92371a60ee09c /engines/sword2 | |
| parent | 412db86dcfc3b29f436ae358c6dd2613ad6b9927 (diff) | |
| download | scummvm-rg350-e5934c8f2158db82fb33ef8000c7eb94728214be.tar.gz scummvm-rg350-e5934c8f2158db82fb33ef8000c7eb94728214be.tar.bz2 scummvm-rg350-e5934c8f2158db82fb33ef8000c7eb94728214be.zip | |
Using FilesystemNode::name instead of FilesystemNode::displayName in the sword2 detector code too.
svn-id: r23557
Diffstat (limited to 'engines/sword2')
| -rw-r--r-- | engines/sword2/sword2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index bbdc2c4092..9454b69644 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -97,9 +97,9 @@ DetectedGameList Engine_SWORD2_detectGames(const FSList &fslist) { // Iterate over all files in the given directory for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { if (!file->isDirectory()) { - const char *gameName = file->displayName().c_str(); + const char *fileName = file->name().c_str(); - if (0 == scumm_stricmp(g->detectname, gameName)) { + if (0 == scumm_stricmp(g->detectname, fileName)) { // Match found, add to list of candidates, then abort inner loop. detectedGames.push_back(*g); break; |
