SCI: Add kPalMorph stub

This commit is contained in:
Colin Snover 2016-01-14 12:05:29 -06:00
parent dc42a86f7e
commit f1cf07eded
3 changed files with 11 additions and 1 deletions

View file

@ -478,6 +478,7 @@ reg_t kPalVaryUnknown(EngineState *s, int argc, reg_t *argv);
reg_t kPalVaryUnknown2(EngineState *s, int argc, reg_t *argv);
// SCI2.1 Kernel Functions
reg_t kMorphOn(EngineState *s, int argc, reg_t *argv);
reg_t kText(EngineState *s, int argc, reg_t *argv);
reg_t kSave(EngineState *s, int argc, reg_t *argv);
reg_t kAutoSave(EngineState *s, int argc, reg_t *argv);

View file

@ -697,7 +697,6 @@ static SciKernelMapEntry s_kernelMap[] = {
// (inclusive) are set to 0
{ MAP_CALL(SetPalStyleRange), SIG_EVERYWHERE, "ii", NULL, NULL },
// MorphOn - used by SQ6, script 900, the datacorder reprogramming puzzle (from room 270)
{ MAP_CALL(MorphOn), SIG_EVERYWHERE, "", NULL, NULL },
// SCI3 Kernel Functions

View file

@ -728,6 +728,16 @@ reg_t kSetScroll(EngineState *s, int argc, reg_t *argv) {
return kStub(s, argc, argv);
}
// Used by SQ6, script 900, the datacorder reprogramming puzzle (from room 270)
reg_t kMorphOn(EngineState *s, int argc, reg_t *argv) {
// TODO: g_sci->_gfxManager->palMorphIsOn = true
// This function sets the palMorphIsOn flag which causes kFrameOut to use
// an alternative FrameOut function (GraphicsMgr::PalMorphFrameOut instead
// of GraphicsMgr::FrameOut). At the end of the frame, kFrameOut sets the
// palMorphIsOn flag back to false.
kStub(s, argc, argv);
return NULL_REG;
reg_t kPalVaryUnknown(EngineState *s, int argc, reg_t *argv) {
// TODO: Unknown (seems to be SCI32 exclusive)
return kStub(s, argc, argv);