diff options
Diffstat (limited to 'engines/fullpipe/stateloader.cpp')
-rw-r--r-- | engines/fullpipe/stateloader.cpp | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index 1f9b090d01..17faba41d5 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -100,7 +100,8 @@ bool FullpipeEngine::loadGam(const char *fname) { #endif _inventory->rebuildItemRects(); - // TODO + + warning("STUB: loadGam()"); } else return false; @@ -185,6 +186,39 @@ bool CGameLoader::load(MfcArchive &file) { return true; } +bool CGameLoader::loadScene(int num) { + SceneTag *st; + + int idx = getSceneTagBySceneId(num, &st); + + if (st->_scene) + st->loadScene(); + + if (st->_scene) { + st->_scene->init(); + + applyPicAniInfos(st->_scene, _sc2array[idx]._defPicAniInfos, _sc2array[idx]._defPicAniInfosCount); + applyPicAniInfos(st->_scene, _sc2array[idx]._picAniInfos, _sc2array[idx]._picAniInfosCount); + + _sc2array[idx]._scene = st->_scene; + _sc2array[idx]._isLoaded = 1; + + return true; + } + + return false; +} + +int CGameLoader::getSceneTagBySceneId(int num, SceneTag **st) { + warning("STUB: CGameLoader::getSceneTagBySceneId()"); + + return 0; +} + +void CGameLoader::applyPicAniInfos(Scene *sc, PicAniInfo **picAniInfo, int picAniInfoCount) { + warning("STUB: CGameLoader::applyPicAniInfo()"); +} + GameProject::GameProject() { _field_4 = 0; _headerFilename = 0; |