From ff7d2e2dbf60202cc24b26b1ac61c0e76e802191 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 Apr 2014 22:41:25 -0400 Subject: MADS: Add missing scene codes variant handling --- engines/mads/scene_data.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'engines/mads/scene_data.h') diff --git a/engines/mads/scene_data.h b/engines/mads/scene_data.h index 81c24ed8ab..2a6032a507 100644 --- a/engines/mads/scene_data.h +++ b/engines/mads/scene_data.h @@ -137,11 +137,6 @@ protected: * Constructor */ SceneInfo(MADSEngine *vm) : _vm(vm) {} - - /** - * Loads the given surface with depth information of a given scene - */ - virtual void loadCodes(MSurface &depthSurface) = 0; public: int _sceneId; int _artFileNum; @@ -173,11 +168,20 @@ public: /** loads the data */ - void load(int sceneId, int flags, const Common::String &resName, int v3, + void load(int sceneId, int variant, const Common::String &resName, int flags, MSurface &depthSurface, MSurface &bgSurface); /** * Loads the given surface with depth information of a given scene + * @param depthSurface Depth/walk surface + * @param variant Variant number to load + */ + virtual void loadCodes(MSurface &depthSurface, int variant) = 0; + + /** + * Loads the given surface with depth information of a given scene + * @param depthSurface Depth/walk surface + * @param stream Stream to load the data from */ virtual void loadCodes(MSurface &depthSurface, Common::SeekableReadStream *stream) = 0; }; -- cgit v1.2.3