aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/script.h
diff options
context:
space:
mode:
authorMax Horn2010-06-28 11:22:41 +0000
committerMax Horn2010-06-28 11:22:41 +0000
commit31b29027144e3a76ab6e8c71a0014ca6121218c0 (patch)
tree722fd79896f1063fbdab7f336e9913dd9e2170a3 /engines/sci/engine/script.h
parent30218a2c324bc67f724100051ab9884a351928fb (diff)
downloadscummvm-rg350-31b29027144e3a76ab6e8c71a0014ca6121218c0.tar.gz
scummvm-rg350-31b29027144e3a76ab6e8c71a0014ca6121218c0.tar.bz2
scummvm-rg350-31b29027144e3a76ab6e8c71a0014ca6121218c0.zip
SCI: Revise GC interface: use Common::Array<reg_t> instead of callbacks
This means a little bit more overhead but makes the code much more readable and understandable. svn-id: r50429
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r--engines/sci/engine/script.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h
index aab073f3a1..490a7a81a3 100644
--- a/engines/sci/engine/script.h
+++ b/engines/sci/engine/script.h
@@ -104,8 +104,10 @@ public:
virtual SegmentRef dereference(reg_t pointer);
virtual reg_t findCanonicAddress(SegManager *segMan, reg_t sub_addr) const;
virtual void freeAtAddress(SegManager *segMan, reg_t sub_addr);
- virtual void listAllDeallocatable(SegmentId segId, void *param, NoteCallback note) const;
- virtual void listAllOutgoingReferences(reg_t object, void *param, NoteCallback note) const;
+ virtual Common::Array<reg_t> listAllDeallocatable(SegmentId segId) const;
+ virtual Common::Array<reg_t> listAllOutgoingReferences(reg_t object) const;
+
+ Common::Array<reg_t> listObjectReferences() const;
virtual void saveLoadWithSerializer(Common::Serializer &ser);