diff options
author | Eugene Sandulenko | 2016-07-10 13:05:30 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 1f0005c4e269ec8d9b848b85e40ab11d7d67a979 (patch) | |
tree | 934904e2099afcf9bc270c64eca03647598635dc /engines/director/lingo/lingo.cpp | |
parent | 6b4cff264588f73170da1b31121a9176efcadeba (diff) | |
download | scummvm-rg350-1f0005c4e269ec8d9b848b85e40ab11d7d67a979.tar.gz scummvm-rg350-1f0005c4e269ec8d9b848b85e40ab11d7d67a979.tar.bz2 scummvm-rg350-1f0005c4e269ec8d9b848b85e40ab11d7d67a979.zip |
DIRECTOR: Lingo: Initial code for Lingo test suite. Uses special game target
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index c1116247b9..26fdfc2edb 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -296,4 +296,24 @@ Common::String *Lingo::toLowercaseMac(Common::String *s) { return res; } +void Lingo::runTests() { + Common::File inFile; + Common::ArchiveMemberList fileList; + SearchMan.listMatchingMembers(fileList, "*.lingo"); + + int counter = 1; + + for (Common::ArchiveMemberList::iterator it = fileList.begin(); it != fileList.end(); ++it) { + Common::ArchiveMember const &m = **it; + Common::SeekableReadStream *const stream = m.createReadStream(); + if (stream) { + uint size = stream->size(); + + warning("Executing file %s of size %d", m.getName().c_str(), size); + } + + inFile.close(); + } +} + } // End of namespace Director |