From a3fc0682f465706ef7d29f1e71089bd383e1d4f8 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 18 May 2006 11:32:59 +0000 Subject: Cleanup. svn-id: r22512 --- engines/kyra/plugin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/kyra') 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; -- cgit v1.2.3