From 1569d5fadc511780cd24bd835fc8983a76a714ba Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 20 Jun 2006 18:08:03 +0000 Subject: Cleanup. svn-id: r23194 --- engines/sword1/control.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines/sword1/control.cpp') diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index c5cb0ec4cd..b8d89ab3d2 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -193,7 +193,6 @@ void Control::askForCd(void) { _system->setPalette(palOut, 0, 256); free(palOut); - Common::File test; char fName[10]; uint8 textA[50]; sprintf(fName, "cd%d.id", SwordEngine::_systemVars.currentCD); @@ -209,15 +208,13 @@ void Control::askForCd(void) { } delay(300); if (_keyPressed) { - test.open(fName); - if (!test.isOpen()) { + if (!Common::File::exists(fName)) { memset(_screenBuf, 0, 640 * 480); renderText(_lStrings[STR_INCORRECT_CD], 320, 230, TEXT_CENTER); _system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480); delay(2000); refreshText = true; } else { - test.close(); notAccepted = false; } } -- cgit v1.2.3