[Scummvm-cvs-logs] SF.net SVN: scummvm: [28808] scummvm/trunk/engines/agi/detection.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Sep 1 23:22:26 CEST 2007
Revision: 28808
http://scummvm.svn.sourceforge.net/scummvm/?rev=28808&view=rev
Author: sev
Date: 2007-09-01 14:22:26 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
Fix fallback detector
Modified Paths:
--------------
scummvm/trunk/engines/agi/detection.cpp
Modified: scummvm/trunk/engines/agi/detection.cpp
===================================================================
--- scummvm/trunk/engines/agi/detection.cpp 2007-09-01 19:41:53 UTC (rev 28807)
+++ scummvm/trunk/engines/agi/detection.cpp 2007-09-01 21:22:26 UTC (rev 28808)
@@ -28,6 +28,7 @@
#include "base/plugins.h"
#include "common/advancedDetector.h"
+#include "common/config-manager.h"
#include "common/file.h"
#include "agi/agi.h"
@@ -1887,8 +1888,13 @@
// Use the current directory for searching if fslist == NULL
if (fslist == NULL) {
- FilesystemNode fsCurrentDir(".");
- fslistCurrentDir.push_back(fsCurrentDir);
+ Common::String path = ConfMan.get("path").c_str();
+
+ if (path.empty())
+ path = ".";
+
+ FilesystemNode fsCurrentDir(path);
+ fsCurrentDir.listDir(fslistCurrentDir, FilesystemNode::kListFilesOnly);
fslist = &fslistCurrentDir;
}
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