aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-10 18:34:38 +0000
committerMartin Kiewitz2010-07-10 18:34:38 +0000
commit8b112704b2e840c6b0f789d527c6bc79fcc9c7e9 (patch)
tree90fd6b59597bc111dd07cfa6b83a680cda4f3c9b
parenta92a8d3c54f1a90c480bddc12d7f48c826bcd684 (diff)
downloadscummvm-rg350-8b112704b2e840c6b0f789d527c6bc79fcc9c7e9.tar.gz
scummvm-rg350-8b112704b2e840c6b0f789d527c6bc79fcc9c7e9.tar.bz2
scummvm-rg350-8b112704b2e840c6b0f789d527c6bc79fcc9c7e9.zip
SCI: adding descriptive comments for subop-tables
svn-id: r50788
-rw-r--r--engines/sci/engine/kernel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index bb00f5903b..4d5ee4aafe 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -294,6 +294,7 @@ struct SciKernelMapSubEntry {
#define MAP_CALL(_name_) #_name_, k##_name_
+// version, subId, function-mapping, signature, workarounds
static const SciKernelMapSubEntry kDoSound_subops[] = {
{ SIG_SOUNDSCI0, 0, MAP_CALL(DoSoundInit), "o", NULL },
{ SIG_SOUNDSCI0, 1, MAP_CALL(DoSoundPlay), "o", NULL },
@@ -349,6 +350,7 @@ static const SciKernelMapSubEntry kDoSound_subops[] = {
SCI_SUBOPENTRY_TERMINATOR
};
+// version, subId, function-mapping, signature, workarounds
static const SciKernelMapSubEntry kGraph_subops[] = {
{ SIG_SCI32, 1, MAP_CALL(StubNull), "", NULL }, // called by gk1 sci32 right at the start
{ SIG_SCIALL, 2, MAP_CALL(GraphGetColorCount), "", NULL },
@@ -369,6 +371,7 @@ static const SciKernelMapSubEntry kGraph_subops[] = {
SCI_SUBOPENTRY_TERMINATOR
};
+// version, subId, function-mapping, signature, workarounds
static const SciKernelMapSubEntry kPalVary_subops[] = {
{ SIG_SCIALL, 0, MAP_CALL(PalVaryInit), "ii(i)(i)", NULL },
{ SIG_SCIALL, 1, MAP_CALL(PalVaryReverse), "(i)(i)(i)", NULL },
@@ -381,6 +384,7 @@ static const SciKernelMapSubEntry kPalVary_subops[] = {
SCI_SUBOPENTRY_TERMINATOR
};
+// version, subId, function-mapping, signature, workarounds
static const SciKernelMapSubEntry kPalette_subops[] = {
{ SIG_SCIALL, 1, MAP_CALL(PaletteSetFromResource), "i(i)", NULL },
{ SIG_SCIALL, 2, MAP_CALL(PaletteSetFlag), "iii", NULL },