aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/segment.h
diff options
context:
space:
mode:
authorFilippos Karapetis2010-05-30 21:49:07 +0000
committerFilippos Karapetis2010-05-30 21:49:07 +0000
commita0ee93ece52213cd989a50902281d917fe392ea4 (patch)
treec3f56972fc286a2fd399ad61dd0fd1d648b9a775 /engines/sci/engine/segment.h
parente13abd77e92a4c363731f4a6775aa26865bb4ad6 (diff)
downloadscummvm-rg350-a0ee93ece52213cd989a50902281d917fe392ea4.tar.gz
scummvm-rg350-a0ee93ece52213cd989a50902281d917fe392ea4.tar.bz2
scummvm-rg350-a0ee93ece52213cd989a50902281d917fe392ea4.zip
SCI: Script exports and synonyms are now initialized when a script is loaded. Removed a sanity check inside script_instantiate_sci0 for a bug which no longer exists
svn-id: r49336
Diffstat (limited to 'engines/sci/engine/segment.h')
-rw-r--r--engines/sci/engine/segment.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h
index 7b0828ab6b..ea85a6e764 100644
--- a/engines/sci/engine/segment.h
+++ b/engines/sci/engine/segment.h
@@ -342,6 +342,7 @@ private:
size_t _scriptSize;
size_t _heapSize;
size_t _bufSize;
+ Common::Array<CodeBlock> _codeBlocks;
public:
/**
@@ -354,7 +355,6 @@ public:
SegmentId _localsSegment; /**< The local variable segment */
LocalVariables *_localsBlock;
- Common::Array<CodeBlock> _codeBlocks;
bool _markedAsDeleted;
public:
@@ -444,12 +444,6 @@ public:
int getSynonymsNr() const;
/**
- * Sets the script-relative offset of the exports table.
- * @param offset script-relative exports table offset
- */
- 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
@@ -459,19 +453,6 @@ public:
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
- */
- void setSynonymsOffset(int offset);
-
- /**
- * Sets the number of synonyms associated with this script,
- * @param nr number of synonyms, as to be stored within the script
- */
- void setSynonymsNr(int nr);
-
-
- /**
* Marks the script as deleted.
* This will not actually delete the script. If references remain present on the
* heap or the stack, the script will stay in memory in a quasi-deleted state until