Skip to content

Commit

Permalink
SCI: Mark the SetScroll and SetHotRectangles kernel functions as unused
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jul 3, 2012
1 parent ff0ab5b commit d74d211
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions engines/sci/engine/kernel_tables.h
Expand Up @@ -520,7 +520,6 @@ static SciKernelMapEntry s_kernelMap[] = {

// SCI2 unmapped functions - TODO!

// SetScroll - called by script 64909, Styler::doit()
// PalCycle - called by Game::newRoom. Related to RemapColors.

// SCI2 Empty functions
Expand Down Expand Up @@ -561,6 +560,11 @@ static SciKernelMapEntry s_kernelMap[] = {
{ MAP_DUMMY(InputText), SIG_EVERYWHERE, "(.*)", NULL, NULL },
{ MAP_DUMMY(TextWidth), SIG_EVERYWHERE, "(.*)", NULL, NULL },
{ MAP_DUMMY(PointSize), SIG_EVERYWHERE, "(.*)", NULL, NULL },
// SetScroll is called by script 64909, Styler::doit(), but it doesn't seem to
// be used at all (plus, it was then changed to a dummy function in SCI3).
// Since this is most likely unused, and we got no test case, error out when
// it is called in order to find an actual call to it.
{ MAP_DUMMY(SetScroll), SIG_EVERYWHERE, "(.*)", NULL, NULL },

// SCI2.1 Kernel Functions
{ MAP_CALL(CD), SIG_EVERYWHERE, "(.*)", NULL, NULL },
Expand Down Expand Up @@ -620,6 +624,8 @@ static SciKernelMapEntry s_kernelMap[] = {
{ MAP_DUMMY(WinDLL), SIG_EVERYWHERE, "(.*)", NULL, NULL },
{ MAP_DUMMY(DeletePic), SIG_EVERYWHERE, "(.*)", NULL, NULL },
{ MAP_DUMMY(GetSierraProfileString), SIG_EVERYWHERE, "(.*)", NULL, NULL },
// SetHotRectangles is used by Phantasmagoria 1, script 64981 (a debug script)
{ MAP_DUMMY(SetHotRectangles), SIG_EVERYWHERE, "(.*)", NULL, NULL },

// Unused / debug functions in the in-between SCI2.1 interpreters
{ MAP_DUMMY(PreloadResource), SIG_EVERYWHERE, "(.*)", NULL, NULL },
Expand All @@ -633,7 +639,6 @@ static SciKernelMapEntry s_kernelMap[] = {
// SetPalStyleRange - 2 integer parameters, start and end. All styles from start-end
// (inclusive) are set to 0
// MorphOn - used by SQ6, script 900, the datacorder reprogramming puzzle (from room 270)
// SetHotRectangles - used by Phantasmagoria 1

// SCI3 Kernel Functions
{ MAP_CALL(PlayDuck), SIG_EVERYWHERE, "(.*)", NULL, NULL },
Expand Down

0 comments on commit d74d211

Please sign in to comment.