diff options
author | Max Horn | 2008-09-30 16:38:46 +0000 |
---|---|---|
committer | Max Horn | 2008-09-30 16:38:46 +0000 |
commit | e5dbb3f901789f820a8fa67c52514434ed27920c (patch) | |
tree | 8714553a958a178efcbbdbad34a068d552166887 /engines/agi/detection.cpp | |
parent | 73b833042e55959954d78b3e6aa2cc89c5b8848d (diff) | |
download | scummvm-rg350-e5dbb3f901789f820a8fa67c52514434ed27920c.tar.gz scummvm-rg350-e5dbb3f901789f820a8fa67c52514434ed27920c.tar.bz2 scummvm-rg350-e5dbb3f901789f820a8fa67c52514434ed27920c.zip |
AGI: Got rid of yet another unwarranted use of FSNode::getPath
svn-id: r34710
Diffstat (limited to 'engines/agi/detection.cpp')
-rw-r--r-- | engines/agi/detection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 2b2d7e080b..f05621e875 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -2207,7 +2207,7 @@ const Common::ADGameDescription *AgiMetaEngine::fallbackDetect(const Common::FSL bool matchedUsingWag = false; int wagFileCount = 0; WagFileParser wagFileParser; - Common::String wagFilePath; + Common::FilesystemNode wagFileNode; Common::String description; Common::FSList fslistCurrentDir; // Only used if fslist == NULL @@ -2246,7 +2246,7 @@ const Common::ADGameDescription *AgiMetaEngine::fallbackDetect(const Common::FSL if (filename.hasSuffix(".wag")) { // Save latest found *.wag file's path (Can be used to open the file, the name can't) - wagFilePath = file->getPath(); + wagFileNode = *file; wagFileCount++; // Count found *.wag files } } @@ -2298,7 +2298,7 @@ const Common::ADGameDescription *AgiMetaEngine::fallbackDetect(const Common::FSL // WinAGI produces *.wag file with interpreter version, game name and other parameters. // If there's exactly one *.wag file and it parses successfully then we'll use its information. - if (wagFileCount == 1 && wagFileParser.parse(wagFilePath.c_str())) { + if (wagFileCount == 1 && wagFileParser.parse(wagFileNode)) { matchedUsingWag = true; const WagProperty *wagAgiVer = wagFileParser.getProperty(WagProperty::PC_INTVERSION); |