diff options
author | Eugene Sandulenko | 2016-08-19 18:56:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-19 18:56:07 +0200 |
commit | 7896f2b6c2a93bd2c8d888b5a57432b818f3b873 (patch) | |
tree | 6d6f4345ea68cc1c13ba668f43f67d858877fc64 /engines | |
parent | 835a9e1b575e702ca26a4c32c34e1aa66f75f284 (diff) | |
download | scummvm-rg350-7896f2b6c2a93bd2c8d888b5a57432b818f3b873.tar.gz scummvm-rg350-7896f2b6c2a93bd2c8d888b5a57432b818f3b873.tar.bz2 scummvm-rg350-7896f2b6c2a93bd2c8d888b5a57432b818f3b873.zip |
DIRECTOR: Lingo: Enhanced Datum::toString() output
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 4088a57d9c..06e4e53886 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -301,6 +301,15 @@ Common::String *Datum::toString() { delete s; s = u.s; break; + case OBJECT: + *s = Common::String::format("#%s", u.s->c_str()); + break; + case VOID: + *s = "#void"; + break; + case VAR: + *s = Common::String::format("var: #%s", u.sym->name); + break; default: warning("Incorrect operation toString() for type: %s", type2str()); } |