[Scummvm-cvs-logs] scummvm master -> 9e672dab60540f0a981c65cf5ca9f536b8c0e6a0

lskovlun lskovlun at sprogklog.dk
Fri Jan 15 03:16:46 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9e672dab60 SCI3: Add comment re new function


Commit: 9e672dab60540f0a981c65cf5ca9f536b8c0e6a0
    https://github.com/scummvm/scummvm/commit/9e672dab60540f0a981c65cf5ca9f536b8c0e6a0
Author: Lars Skovlund (lskovlun at sprogklog.dk)
Date: 2016-01-15T03:14:34+01:00

Commit Message:
SCI3: Add comment re new function

Changed paths:
    engines/sci/engine/seg_manager.h



diff --git a/engines/sci/engine/seg_manager.h b/engines/sci/engine/seg_manager.h
index 7a68960..c1b4929 100644
--- a/engines/sci/engine/seg_manager.h
+++ b/engines/sci/engine/seg_manager.h
@@ -472,6 +472,17 @@ private:
 	void createClassTable();
 
 	SegmentId findFreeSegment() const;
+
+/**
+ * This implements our handling of scripts greater than 64K in size.
+ * They occur sporadically in SCI3 games (and in The Realm (SCI2.1), 
+ * if we ever decide to support it). It works by "stealing" the upper
+ * two bits of the segment value to use as extra offset bits, making 
+ * the maximum offset 0x3FFFF (262143). This is enough.
+ *
+ * The "actual" segment, then, is the segment value with the upper two
+ * bits masked out.
+ */
 	SegmentId getActualSegment(SegmentId seg) const;
 };
 






More information about the Scummvm-git-logs mailing list