[Scummvm-cvs-logs] SF.net SVN: scummvm: [23195] scummvm/branches/branch-0-9-0/engines/kyra/plugin.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Jun 20 20:24:59 CEST 2006
Revision: 23195
Author: lordhoto
Date: 2006-06-20 11:24:54 -0700 (Tue, 20 Jun 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23195&view=rev
Log Message:
-----------
Removes usage of Common::File::exists since it's bugged in the WinCE port.
Modified Paths:
--------------
scummvm/branches/branch-0-9-0/engines/kyra/plugin.cpp
Modified: scummvm/branches/branch-0-9-0/engines/kyra/plugin.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/kyra/plugin.cpp 2006-06-20 18:08:03 UTC (rev 23194)
+++ scummvm/branches/branch-0-9-0/engines/kyra/plugin.cpp 2006-06-20 18:24:54 UTC (rev 23195)
@@ -301,8 +301,12 @@
_features = 0;
memset(md5str, 0, sizeof(md5str));
for (g = kyra1_games; g->gameid; g++) {
- if (!Common::File::exists(g->checkFile))
+ Common::File temp;
+ temp.open(g->checkFile);
+ if (!temp.isOpen())
continue;
+ //if (!Common::File::exists(g->checkFile))
+ // continue;
fileFound = true;
@@ -330,20 +334,27 @@
printf("Unknown MD5 (%s)! Please report the details (language, platform, etc.) of this game to the ScummVM team\n", md5str);
_features = 0;
_game = GI_KYRA1;
- if (Common::File::exists("INTRO.VRM")) {
+ Common::File temp;
+ temp.open(g->checkFile);
+ if (temp.isOpen())
+ //if (Common::File::exists("INTRO.VRM")) {
_features |= GF_TALKIE;
} else {
_features |= GF_FLOPPY;
}
+ temp.close();
// try to detect the language
const Kyra1LanguageTable *lang = kyra1_languages;
for (; lang->file; ++lang) {
- if (Common::File::exists(lang->file)) {
+ temp.open(g->checkFile);
+ if (temp.isOpen())
+ //if (Common::File::exists(lang->file)) {
_features |= lang->language;
versionFound = true;
break;
}
+ temp.close();
}
if (!versionFound) {
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