From 4f6d42d77b5284552b12a7c0f427e060b27c3077 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 13 May 2012 16:23:15 +0200 Subject: SCI: Add a few FIXMEs --- engines/sci/resource.cpp | 2 ++ engines/sci/resource.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'engines/sci') diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 77a6a40a92..11c3e2bab5 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -93,6 +93,8 @@ const char *getSciVersionDesc(SciVersion version) { //#define SCI_VERBOSE_RESMAN 1 +// FIXME: This list is out of sync with the enum in resource.h with +// its indices. static const char *const sci_error_types[] = { "No error", "I/O error", diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 294a4672e2..6c2eb0b025 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -54,6 +54,7 @@ enum ResourceStatus { kResStatusLocked /**< Allocated and in use */ }; +// FIXME: This enum is out of sync with its textual descriptions in resource.cpp /** Initialization result types */ enum { SCI_ERROR_IO_ERROR = 1, @@ -64,6 +65,7 @@ enum { SCI_ERROR_DECOMPRESSION_ERROR = 6, /**< sanity checks failed during decompression */ SCI_ERROR_RESOURCE_TOO_BIG = 8 /**< Resource size exceeds SCI_MAX_RESOURCE_SIZE */ + // FIXME: This comment makes no sense. Track down in history what it means: /* the first critical error number */ }; -- cgit v1.2.3