aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scene.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-06-24 16:22:26 -0400
committerEugene Sandulenko2013-09-06 14:48:15 +0300
commit5f7cf0131c95c165db8ce5b1933917e4da037845 (patch)
tree8f96d11c009e0d4ccd4a91b1ade5d98ab6f44238 /engines/fullpipe/scene.cpp
parent00971bf2092c5e9c33d5475bb91075d2bcc32557 (diff)
downloadscummvm-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.cpp26
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