aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-13 14:40:53 +0200
committerEugene Sandulenko2016-08-13 14:40:53 +0200
commit409772ea1f1986ff37656ae57a0e2b2eaf8c1b4d (patch)
treee12a4f6802ec2ccb566b5be3a89fde39b92fe8f1
parentdc2a456b64c86439883c57ca457c61a44a74ddfe (diff)
downloadscummvm-rg350-409772ea1f1986ff37656ae57a0e2b2eaf8c1b4d.tar.gz
scummvm-rg350-409772ea1f1986ff37656ae57a0e2b2eaf8c1b4d.tar.bz2
scummvm-rg350-409772ea1f1986ff37656ae57a0e2b2eaf8c1b4d.zip
DIRECTOR: Lingo: Added stub for 'label' function
-rw-r--r--engines/director/lingo/lingo-builtins.cpp9
-rw-r--r--engines/director/lingo/lingo.h3
2 files changed, 11 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp
index 0e1d4f0733..d3545a7d3b 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -94,6 +94,7 @@ static struct BuiltinProto {
{ "editableText", Lingo::b_editableText, 0, 0, false }, // D2
// go // D2
{ "installMenu", Lingo::b_installMenu, 1, 1, false }, // D2
+ { "label", Lingo::b_label, 1, 1, true }, // D2
{ "moveableSprite", Lingo::b_moveableSprite,0, 0, false }, // D2
{ "puppetPalette", Lingo::b_puppetPalette, -1,0, false }, // D2
{ "puppetSound", Lingo::b_puppetSound, -1,0, false }, // D2
@@ -555,6 +556,14 @@ void Lingo::b_installMenu(int nargs) {
warning("STUB: b_installMenu(%d)", d.u.i);
}
+void Lingo::b_label(int nargs) {
+ Datum d = g_lingo->pop();
+ d.toInt();
+ warning("STUB: b_label(%d)", d.u.i);
+
+ g_lingo->push(Datum(0));
+}
+
void Lingo::b_moveableSprite(int nargs) {
Datum d = g_lingo->pop();
warning("STUB: b_moveableSprite(%d)", d.u.i);
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h
index 6fd5f1974a..8af20f2a15 100644
--- a/engines/director/lingo/lingo.h
+++ b/engines/director/lingo/lingo.h
@@ -296,7 +296,7 @@ public:
static void b_constrainV(int nargs);
static void b_editableText(int nargs);
static void b_installMenu(int nargs);
- static void b_updateStage(int nargs);
+ static void b_label(int nargs);
static void b_moveableSprite(int nargs);
static void b_puppetPalette(int nargs);
static void b_puppetSound(int nargs);
@@ -304,6 +304,7 @@ public:
static void b_puppetTempo(int nargs);
static void b_puppetTransition(int nargs);
static void b_spriteBox(int nargs);
+ static void b_updateStage(int nargs);
static void b_zoomBox(int nargs);
static void b_continue(int nargs);