diff options
author | Torbjörn Andersson | 2006-05-18 11:32:59 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-18 11:32:59 +0000 |
commit | a3fc0682f465706ef7d29f1e71089bd383e1d4f8 (patch) | |
tree | 366ac5679a080912891f9d049ae22cb0c86de5d2 /engines/kyra | |
parent | 4d69cfeaa455d5abe5b8fdae5b421999260570b8 (diff) | |
download | scummvm-rg350-a3fc0682f465706ef7d29f1e71089bd383e1d4f8.tar.gz scummvm-rg350-a3fc0682f465706ef7d29f1e71089bd383e1d4f8.tar.bz2 scummvm-rg350-a3fc0682f465706ef7d29f1e71089bd383e1d4f8.zip |
Cleanup.
svn-id: r22512
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/kyra/plugin.cpp b/engines/kyra/plugin.cpp index 4b3671ff69..eb9e044e1a 100644 --- a/engines/kyra/plugin.cpp +++ b/engines/kyra/plugin.cpp @@ -319,8 +319,7 @@ int KyraEngine_v1::setupGameFlags() { 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; - Common::File test; - if (test.open("INTRO.VRM")) { + if (Common::File::exists("INTRO.VRM")) { _features |= GF_TALKIE; } else { _features |= GF_FLOPPY; @@ -329,7 +328,7 @@ int KyraEngine_v1::setupGameFlags() { // try to detect the language const Kyra1LanguageTable *lang = kyra1_languages; for (; lang->file; ++lang) { - if (test.open(lang->file)) { + if (Common::File::exists(lang->file)) { _features |= lang->language; versionFound = true; break; |