[Scummvm-cvs-logs] SF.net SVN: scummvm: [23556] scummvm/trunk/engines/sword1/sword1.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sat Jul 22 16:37:58 CEST 2006
Revision: 23556
Author: lordhoto
Date: 2006-07-22 07:37:52 -0700 (Sat, 22 Jul 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23556&view=rev
Log Message:
-----------
Using FilesystemNode::name instead of FilesystemNode::displayName in the sword1 detector code too.
Modified Paths:
--------------
scummvm/trunk/engines/sword1/sword1.cpp
Modified: scummvm/trunk/engines/sword1/sword1.cpp
===================================================================
--- scummvm/trunk/engines/sword1/sword1.cpp 2006-07-22 14:36:09 UTC (rev 23555)
+++ scummvm/trunk/engines/sword1/sword1.cpp 2006-07-22 14:37:52 UTC (rev 23556)
@@ -83,13 +83,13 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list