[Scummvm-cvs-logs] scummvm master -> bca82642a79c250a958111b437a2fe18c1a1101c

bluegr md5 at scummvm.org
Thu Mar 10 21:45:18 CET 2011


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:
bca82642a7 SCI: kPurge is the SCI2+ version of kFlushResources


Commit: bca82642a79c250a958111b437a2fe18c1a1101c
    https://github.com/scummvm/scummvm/commit/bca82642a79c250a958111b437a2fe18c1a1101c
Author: md5 (md5 at scummvm.org)
Date: 2011-03-10T12:42:58-08:00

Commit Message:
SCI: kPurge is the SCI2+ version of kFlushResources

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



diff --git a/engines/sci/engine/kernel_tables.h b/engines/sci/engine/kernel_tables.h
index 6dd08d7..614d1b1 100644
--- a/engines/sci/engine/kernel_tables.h
+++ b/engines/sci/engine/kernel_tables.h
@@ -490,6 +490,12 @@ static SciKernelMapEntry s_kernelMap[] = {
 	{ MAP_CALL(ListFirstTrue),     SIG_EVERYWHERE,           "li(.*)",                NULL,            NULL },
 	{ MAP_CALL(ListIndexOf),       SIG_EVERYWHERE,           "l[o0]",                 NULL,            NULL },
 	{ "OnMe", kIsOnMe,             SIG_EVERYWHERE,           "iioi",                  NULL,            NULL },
+	// Purge is used by the memory manager in SSCI to ensure that X number of bytes (the so called "unmovable
+	// memory") are available when the current room changes. This is similar to the SCI0-SCI1.1 FlushResources
+	// call, with the added functionality of ensuring that a specific amount of memory is available. We have
+	// our own memory manager and garbage collector, thus we simply call FlushResources, which in turn invokes
+	// our garbage collector (i.e. the SCI0-SCI1.1 semantics).
+	{ "Purge", kFlushResources,    SIG_EVERYWHERE,           "i",                     NULL,            NULL },
 	{ MAP_CALL(RepaintPlane),      SIG_EVERYWHERE,           "o",                     NULL,            NULL },
 	{ MAP_CALL(SetShowStyle),      SIG_EVERYWHERE,           "ioiiiii([ri])(i)",      NULL,            NULL },
 	{ MAP_CALL(String),            SIG_EVERYWHERE,           "(.*)",                  NULL,            NULL },
@@ -508,12 +514,6 @@ static SciKernelMapEntry s_kernelMap[] = {
 	// MakeSaveCatName - used in the Save/Load dialog of GK1CD (SRDialog, script 64990)
 	// MakeSaveFileName - used in the Save/Load dialog of GK1CD (SRDialog, script 64990)
 
-	// SCI2 empty functions
-
-	// Purge is used by the memory manager in SSCI to ensure that X number of bytes (the so called "unmovable
-	// memory") are available. We have our own memory manager and garbage collector, thus we ignore this call.
-	{ MAP_EMPTY(Purge),            SIG_EVERYWHERE,           "i",                     NULL,            NULL },
-
 	// Unused / debug SCI2 unused functions, always mapped to kDummy
 	{ MAP_DUMMY(InspectObject),    SIG_EVERYWHERE,           "(.*)",                  NULL,            NULL },
 	// Profiler (same as SCI0-SCI1.1)






More information about the Scummvm-git-logs mailing list