aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormd52011-03-10 22:42:17 +0200
committermd52011-03-10 22:42:58 +0200
commitbca82642a79c250a958111b437a2fe18c1a1101c (patch)
treef46d29270c0b7c1b99593152bc5793d38d9f3fa2
parenta5a8af86ee43ead26f1fc73f48661da878603711 (diff)
downloadscummvm-rg350-bca82642a79c250a958111b437a2fe18c1a1101c.tar.gz
scummvm-rg350-bca82642a79c250a958111b437a2fe18c1a1101c.tar.bz2
scummvm-rg350-bca82642a79c250a958111b437a2fe18c1a1101c.zip
SCI: kPurge is the SCI2+ version of kFlushResources
-rw-r--r--engines/sci/engine/kernel_tables.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/engine/kernel_tables.h b/engines/sci/engine/kernel_tables.h
index 6dd08d78ff..614d1b18b2 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)