aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/segment.h
diff options
context:
space:
mode:
authorFilippos Karapetis2010-05-19 08:50:24 +0000
committerFilippos Karapetis2010-05-19 08:50:24 +0000
commit174a043aa7459478326a771581d39f3480ca82f6 (patch)
tree9c627a18dc95fd39c46f39d8cf8f2a81217a6e17 /engines/sci/engine/segment.h
parent852cb16c49aaca1891d25e420ddf1459efa55ae8 (diff)
downloadscummvm-rg350-174a043aa7459478326a771581d39f3480ca82f6.tar.gz
scummvm-rg350-174a043aa7459478326a771581d39f3480ca82f6.tar.bz2
scummvm-rg350-174a043aa7459478326a771581d39f3480ca82f6.zip
Removed the exportsAreWide variable from the segment manager and save games, and moved validateExportFunc() in the Script class, thus resolving a TODO
svn-id: r49093
Diffstat (limited to 'engines/sci/engine/segment.h')
-rw-r--r--engines/sci/engine/segment.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h
index 28959f087a..1089ada475 100644
--- a/engines/sci/engine/segment.h
+++ b/engines/sci/engine/segment.h
@@ -446,7 +446,6 @@ public:
*/
int getSynonymsNr() const;
-
/**
* Sets the script-relative offset of the exports table.
* @param offset script-relative exports table offset
@@ -454,6 +453,15 @@ public:
void setExportTableOffset(int offset);
/**
+ * Validate whether the specified public function is exported by
+ * the script in the specified segment.
+ * @param pubfunct Index of the function to validate
+ * @return NULL if the public function is invalid, its
+ * offset into the script's segment otherwise
+ */
+ uint16 validateExportFunc(int pubfunct);
+
+ /**
* Sets the script-relative offset of the synonyms associated with this script.
* @param offset script-relative offset of the synonyms block
*/