diff options
Diffstat (limited to 'graphics/imageman.h')
-rw-r--r-- | graphics/imageman.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/graphics/imageman.h b/graphics/imageman.h index 6f682c1646..a5fe8f131d 100644 --- a/graphics/imageman.h +++ b/graphics/imageman.h @@ -37,7 +37,7 @@ public: ~ImageManager(); /** - * adds an .zip archive to the pool there the ImagaManager searches + * adds an .zip archive to the pool where the ImageManager searches * for image files * * @param name the name of the archive @@ -45,6 +45,14 @@ public: */ bool addArchive(const Common::String &name); + /** + * deletes an .zip archive from the pool where the Image Manager searches + * for image files + * + * @param name the name of the archive + */ + void remArchive(const Common::String &name); + /** * registers a surface to the ImageManager. * surf->free(), also delete surf, will be called when the ImageManager will @@ -84,14 +92,18 @@ private: }; typedef Common::List<Entry*>::iterator Iterator; #ifdef USE_ZLIB - typedef Common::List<unzFile>::iterator ZipIterator; + struct Archive { + unzFile file; + Common::String filename; + }; + typedef Common::List<Archive>::iterator ZipIterator; #endif Iterator searchHandle(const Common::String &name); Common::List<Entry*> _surfaces; #ifdef USE_ZLIB - Common::List<unzFile> _archives; + Common::List<Archive> _archives; #endif }; |