diff options
Diffstat (limited to 'engines/director/lingo/lingo-codegen.cpp')
-rw-r--r-- | engines/director/lingo/lingo-codegen.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp index 00875dec27..e59f57ab4f 100644 --- a/engines/director/lingo/lingo-codegen.cpp +++ b/engines/director/lingo/lingo-codegen.cpp @@ -206,6 +206,15 @@ void Lingo::codeArgStore() { } } +int Lingo::codeFunc(Common::String *s, int numpar) { + g_lingo->code1(g_lingo->c_call); + g_lingo->codeString(s->c_str()); + + inst num = 0; + WRITE_UINT32(&num, numpar); + g_lingo->code1(num); +} + void Lingo::codeLabel(int label) { _labelstack.push_back(label); } |