diff options
author | Matthew Hoops | 2009-12-30 16:00:56 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-12-30 16:00:56 +0000 |
commit | 5382aa1ab0ac0b42a33a4b73664e3a8064b4211b (patch) | |
tree | 17ad3256bc97d181433414aac36b8cf224e22e71 /engines/sci/engine/segment.cpp | |
parent | fd2d0fc7182e97fedf901b276bc7e48dcdcb4c13 (diff) | |
download | scummvm-rg350-5382aa1ab0ac0b42a33a4b73664e3a8064b4211b.tar.gz scummvm-rg350-5382aa1ab0ac0b42a33a4b73664e3a8064b4211b.tar.bz2 scummvm-rg350-5382aa1ab0ac0b42a33a4b73664e3a8064b4211b.zip |
SCI32:
- Set signature for Array/String
- Add the kernel table differences for the GK2 demo
- Implement kMessage changes in SCI32
- Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid)
- Add dereferencing for Arrays
svn-id: r46756
Diffstat (limited to 'engines/sci/engine/segment.cpp')
-rw-r--r-- | engines/sci/engine/segment.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/engine/segment.cpp b/engines/sci/engine/segment.cpp index 4b4ce491e5..20d27b9ba2 100644 --- a/engines/sci/engine/segment.cpp +++ b/engines/sci/engine/segment.cpp @@ -493,6 +493,14 @@ void DynMem::listAllDeallocatable(SegmentId segId, void *param, NoteCallback not #ifdef ENABLE_SCI32 +SegmentRef ArrayTable::dereference(reg_t pointer) { + SegmentRef ret; + ret.isRaw = false; + ret.maxSize = _table[pointer.offset].getSize() * 2; + ret.reg = _table[pointer.offset].getRawData(); + return ret; +} + Common::String SciString::toString() { if (_type != 3) error("SciString::toString(): Array is not a string"); |