diff options
author | Eugene Sandulenko | 2016-07-10 14:05:06 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 855db111fcfca11224f77255a01bef50eb386961 (patch) | |
tree | 2a474d41ba2416abe0f93dc268564db2e1bbb0cd /engines/director/lingo/lingo.cpp | |
parent | bb7e9b64b6e8eeeff90b5496a465f62f1bd8e705 (diff) | |
download | scummvm-rg350-855db111fcfca11224f77255a01bef50eb386961.tar.gz scummvm-rg350-855db111fcfca11224f77255a01bef50eb386961.tar.bz2 scummvm-rg350-855db111fcfca11224f77255a01bef50eb386961.zip |
DIRECTOR: Lingo: Execute test suite
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index b9a7488952..dd3d0cde19 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -309,7 +309,18 @@ void Lingo::runTests() { if (stream) { uint size = stream->size(); + char *script = (char *)calloc(size + 1, 1); + + stream->read(script, size); + warning("Executing file %s of size %d", m.getName().c_str(), size); + + addCode(script, kMovieScript, counter); + executeScript(kMovieScript, counter); + + free(script); + + counter++; } inFile.close(); |