[Scummvm-git-logs] scummvm master -> 8e303c77052bdd691d67855c0103e23b69ade3bb

sev- sev at scummvm.org
Sat Jan 7 17:31:43 CET 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8e303c7705 DIRECTOR: Lingo: Added stub for 'me' keyword


Commit: 8e303c77052bdd691d67855c0103e23b69ade3bb
    https://github.com/scummvm/scummvm/commit/8e303c77052bdd691d67855c0103e23b69ade3bb
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-01-07T17:31:19+01:00

Commit Message:
DIRECTOR: Lingo: Added stub for 'me' keyword

Changed paths:
    engines/director/lingo/lingo-builtins.cpp
    engines/director/lingo/lingo-the.cpp
    engines/director/lingo/lingo.h


diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp
index 62e0236..5715ff2 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -33,19 +33,19 @@ static struct BuiltinProto {
 } builtins[] = {
 	// Math
 	{ "abs",			Lingo::b_abs,			1, 1, true },	// D2
-	{ "atan",			Lingo::b_atan,			1, 1, true },	// 		D4
-	{ "cos",			Lingo::b_cos,			1, 1, true },	// 		D4
-	{ "exp",			Lingo::b_exp,			1, 1, true },	// 		D4
-	{ "float",			Lingo::b_float,			1, 1, true },	// 		D4
+	{ "atan",			Lingo::b_atan,			1, 1, true },	// 			D4
+	{ "cos",			Lingo::b_cos,			1, 1, true },	// 			D4
+	{ "exp",			Lingo::b_exp,			1, 1, true },	// 			D4
+	{ "float",			Lingo::b_float,			1, 1, true },	// 			D4
 	{ "integer",		Lingo::b_integer,		1, 1, true },
 	{ "integerp",		Lingo::b_integerp,		1, 1, true },
-	{ "log",			Lingo::b_log,			1, 1, true },	// 		D4
-	{ "pi",				Lingo::b_pi,			0, 0, true },	// 		D4
-	{ "power",			Lingo::b_power,			2, 2, true },	// 		D4
+	{ "log",			Lingo::b_log,			1, 1, true },	// 			D4
+	{ "pi",				Lingo::b_pi,			0, 0, true },	// 			D4
+	{ "power",			Lingo::b_power,			2, 2, true },	// 			D4
 	{ "random",			Lingo::b_random,		1, 1, true },	// D2
 	{ "sin",			Lingo::b_sin,			1, 1, true },
 	{ "sqrt",			Lingo::b_sqrt,			1, 1, true },	// D2
-	{ "tan",			Lingo::b_tan,			1, 1, true },	// 		D4
+	{ "tan",			Lingo::b_tan,			1, 1, true },	// 			D4
 	// String
 	{ "chars",			Lingo::b_chars,			3, 3, true },	// D2
 	{ "charToNum",		Lingo::b_charToNum,		1, 1, true },	// D2
@@ -87,7 +87,7 @@ static struct BuiltinProto {
 	{ "alert",	 		Lingo::b_alert,			1, 1, false },	// D2
 	{ "cursor",	 		Lingo::b_cursor,		1, 1, false },	// D2
 	{ "printFrom",	 	Lingo::b_printFrom,		-1,0, false },	// D2
-	{ "ilk",	 		Lingo::b_ilk,			1, 2, true },	// 		D4
+	{ "ilk",	 		Lingo::b_ilk,			1, 2, true },	// 			D4
 		// put													// D2
 		// set													// D2
 	{ "objectp",		Lingo::b_objectp,		1, 1, true },
@@ -101,7 +101,7 @@ static struct BuiltinProto {
 		// go													// D2
 	{ "installMenu",	Lingo::b_installMenu,	1, 1, false },	// D2
 	{ "label",			Lingo::b_label,			1, 1, true },	// D2
-	{ "marker",			Lingo::b_marker,			1, 1, true },	// D2
+	{ "marker",			Lingo::b_marker,		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
@@ -128,7 +128,8 @@ static struct BuiltinProto {
 	{ "tab",			Lingo::b_tab,			0, 0, false },	// D2
 	{ "true",			Lingo::b_true,			0, 0, false },	// D2
 	// References
-	{ "field",			Lingo::b_field,			1, 1, false },	// D3
+	{ "field",			Lingo::b_field,			1, 1, false },	//		D3
+	{ "me",				Lingo::b_me,			-1,0, false },	//		D3
 
 
 	{ 0, 0, 0, 0, false }
@@ -830,5 +831,9 @@ void Lingo::b_field(int nargs) {
 	warning("STUB: b_field");
 }
 
+void Lingo::b_me(int nargs) {
+	g_lingo->printStubWithArglist("me", nargs);
+}
+
 
 } // End of namespace Director
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 89d8746..fce45d0 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -32,7 +32,7 @@ TheEntity entities[] = {
 	{ kTheBeepOn,			"beepOn",			false },	// D2 property
 	{ kTheButtonStyle,		"buttonStyle",		false },	// D2 p
 	{ kTheCast,				"cast",				true  },	// D3
-	{ kTheCastMembers,		"castmembers",		true  },	// D3
+	{ kTheCastMembers,		"castmembers",		true  },	//		 D3
 	{ kTheCenterStage,		"centerStage",		false },	// D2 p
 	{ kTheCheckBoxAccess,	"checkBoxAccess",	false },	// D2 p
 	{ kTheCheckBoxType,		"checkBoxType",		false },	// D2 p
@@ -141,7 +141,7 @@ TheEntityField fields[] = {
 	{ kTheSprite,	"width",		kTheWidth },		// D2 p
 
 	// the number of castmembers
-	{ kTheCastMembers,	"number",	kTheNumber },		// D3 p
+	{ kTheCastMembers,	"number",	kTheNumber },		// 		D3 p
 
 	// Common cast fields
 	{ kTheCast,		"castType",		kTheCastType },
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h
index 1484b9a..074947e 100644
--- a/engines/director/lingo/lingo.h
+++ b/engines/director/lingo/lingo.h
@@ -388,6 +388,7 @@ public:
 	void factoryCall(Common::String &name, int nargs);
 
 	static void b_field(int nargs);
+	static void b_me(int nargs);
 
 	void func_mci(Common::String &s);
 	void func_mciwait(Common::String &s);





More information about the Scummvm-git-logs mailing list