aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/resource.cpp2
-rw-r--r--engines/sci/resource.h2
2 files changed, 4 insertions, 0 deletions
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 */
};