diff options
author | Eugene Sandulenko | 2016-07-08 23:36:12 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 4763228ef36bc8af38567f4ccbf4583051da0740 (patch) | |
tree | 47f7cbb1f3571dde7507497449200bc52172aab5 /engines/director/lingo/lingo-code.cpp | |
parent | 336f0bee9d49979bf527a1e7bb076aba0652f96e (diff) | |
download | scummvm-rg350-4763228ef36bc8af38567f4ccbf4583051da0740.tar.gz scummvm-rg350-4763228ef36bc8af38567f4ccbf4583051da0740.tar.bz2 scummvm-rg350-4763228ef36bc8af38567f4ccbf4583051da0740.zip |
DIRECTOR: Lingo: Added string constants as expressions
Diffstat (limited to 'engines/director/lingo/lingo-code.cpp')
-rw-r--r-- | engines/director/lingo/lingo-code.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp index 6151c1b60b..72e771ddef 100644 --- a/engines/director/lingo/lingo-code.cpp +++ b/engines/director/lingo/lingo-code.cpp @@ -116,6 +116,16 @@ void Lingo::c_fconstpush() { g_lingo->push(d); } +void Lingo::c_stringpush() { + Datum d; + char *s = (char *)&(*g_lingo->_currentScript)[g_lingo->_pc]; + g_lingo->_pc += g_lingo->calcStringAlignment(s); + + d.u.s = new Common::String(s); + d.type = STRING; + g_lingo->push(d); +} + void Lingo::c_varpush() { char *name = (char *)&(*g_lingo->_currentScript)[g_lingo->_pc]; Datum d; |