From d6e397233f7abb76b60bae6c4a0dc8052c1b3e17 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 21 Feb 2009 22:40:58 +0000 Subject: SCI: More cleanup svn-id: r38758 --- engines/sci/scicore/resource.cpp | 4 ++-- engines/sci/scicore/resource_map.cpp | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'engines/sci/scicore') diff --git a/engines/sci/scicore/resource.cpp b/engines/sci/scicore/resource.cpp index d12d261c01..5f2e2ce277 100644 --- a/engines/sci/scicore/resource.cpp +++ b/engines/sci/scicore/resource.cpp @@ -396,7 +396,7 @@ static int _scir_scan_new_sources(ResourceManager *mgr, int *detected_version, R return NULL; } if (resource_error == SCI_ERROR_RESMAP_NOT_FOUND) { - // fixme: Try reading w/o resource.map + // FIXME: Try reading w/o resource.map resource_error = SCI_ERROR_NO_RESOURCE_FILES_FOUND; } @@ -414,7 +414,7 @@ static int _scir_scan_new_sources(ResourceManager *mgr, int *detected_version, R resource_error = sci1_read_resource_map(mgr, source, scir_get_volume(mgr, source, 0), &mgr->_resources, &mgr->_resourcesNr, detected_version); if (resource_error == SCI_ERROR_RESMAP_NOT_FOUND) { - // fixme: Try reading w/o resource.map + // FIXME: Try reading w/o resource.map resource_error = SCI_ERROR_NO_RESOURCE_FILES_FOUND; } diff --git a/engines/sci/scicore/resource_map.cpp b/engines/sci/scicore/resource_map.cpp index c30525584a..93129f193d 100644 --- a/engines/sci/scicore/resource_map.cpp +++ b/engines/sci/scicore/resource_map.cpp @@ -106,10 +106,7 @@ static int detect_odd_sci01(Common::File &file) { if (read_ok) { sprintf(filename, "resource.%03i", SCI0_RESFILE_GET_FILE(buf + 2)); - Common::File temp; - - // FIXME: Maybe better to use File::exists here? - if (!temp.open(filename)) { + if (!Common::File::exists(filename)) { files_ok = 0; break; } -- cgit v1.2.3