aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-05-13 16:23:15 +0200
committerWillem Jan Palenstijn2012-05-13 16:23:15 +0200
commit4f6d42d77b5284552b12a7c0f427e060b27c3077 (patch)
tree5b869d5adabee7b30c48d9be7ec5021e20752eec /engines/sci
parent0aacf4c4c08baf512b98afa63bd3d052bfec0716 (diff)
downloadscummvm-rg350-4f6d42d77b5284552b12a7c0f427e060b27c3077.tar.gz
scummvm-rg350-4f6d42d77b5284552b12a7c0f427e060b27c3077.tar.bz2
scummvm-rg350-4f6d42d77b5284552b12a7c0f427e060b27c3077.zip
SCI: Add a few FIXMEs
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 */
};