diff options
author | Dmitry Iskrich | 2016-06-01 17:38:09 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | f8583622848e1d3d451871ad944645b38714b3ce (patch) | |
tree | 11d7d8297d6db5a82393eeebf0290d3fd69657e7 /engines/director/director.cpp | |
parent | 961adeee7f0ff24f435a3db91e7298c98accaac5 (diff) | |
download | scummvm-rg350-f8583622848e1d3d451871ad944645b38714b3ce.tar.gz scummvm-rg350-f8583622848e1d3d451871ad944645b38714b3ce.tar.bz2 scummvm-rg350-f8583622848e1d3d451871ad944645b38714b3ce.zip |
DIRECTOR: Move score loading resource to constructor
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index bd08adfb2f..a044f23cc4 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -70,15 +70,7 @@ Common::Error DirectorEngine::run() { _mainArchive = new RIFFArchive(); _mainArchive->openFile("bookshelf_example.mmm"); - Common::SeekableReadStream *scr = _mainArchive->getResource(MKTAG('V','W','S','C'), 1024); - Score score(*scr, *_mainArchive); - - Common::SeekableReadStream *conf = _mainArchive->getResource(MKTAG('V','W','C','F'), 1024); - score.loadConfig(*conf); - - Common::SeekableReadStream *records = _mainArchive->getResource(MKTAG('V','W','C','R'), 1024); - score.loadCastData(*records); - + Score score(*_mainArchive); score.play(); if (getPlatform() == Common::kPlatformWindows) |