diff options
author | Eugene Sandulenko | 2013-06-24 16:22:26 -0400 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:48:15 +0300 |
commit | 5f7cf0131c95c165db8ce5b1933917e4da037845 (patch) | |
tree | 8f96d11c009e0d4ccd4a91b1ade5d98ab6f44238 /engines/fullpipe/scene.cpp | |
parent | 00971bf2092c5e9c33d5475bb91075d2bcc32557 (diff) | |
download | scummvm-rg350-5f7cf0131c95c165db8ce5b1933917e4da037845.tar.gz scummvm-rg350-5f7cf0131c95c165db8ce5b1933917e4da037845.tar.bz2 scummvm-rg350-5f7cf0131c95c165db8ce5b1933917e4da037845.zip |
FULLPIPE: Started sound loading
Diffstat (limited to 'engines/fullpipe/scene.cpp')
-rw-r--r-- | engines/fullpipe/scene.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index 0a79ef5f0f..3dc98bf7c9 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -192,9 +192,35 @@ bool Scene::load(MfcArchive &file) { if (shd->loadFile(shdname)) _shadows = shd; + free(shdname); + + char *slsname = genFileName(0, _sceneId, "sls"); + + if (g_fullpipe->_soundEnabled) { + _soundList = new SoundList(); + + if (g_fullpipe->_flgSoundList) { + char *nlname = genFileName(17, _sceneId, "nl"); + + _soundList->loadFile(slsname, nlname); + + free(nlname); + } else { + _soundList->loadFile(slsname, 0); + } + } + + free(slsname); + + initStaticANIObjects(); + warning("STUB: Scene::load (%d bytes left)", file.size() - file.pos()); return true; } +void Scene::initStaticANIObjects() { + warning("STUB: Scene::initStaticANIObjects"); +} + } // End of namespace Fullpipe |