aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/resource.h
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-14 22:58:51 +0000
committerMatthew Hoops2010-12-14 22:58:51 +0000
commit0c677aacde925fdef989b8702d23dac6cb9f04a1 (patch)
tree0bfac59e551025d8d1c03b0244b3b90b91cb0364 /engines/mohawk/resource.h
parent3a5c8e6cfaeaa8e6a2ff421222418d2ea22721c1 (diff)
downloadscummvm-rg350-0c677aacde925fdef989b8702d23dac6cb9f04a1.tar.gz
scummvm-rg350-0c677aacde925fdef989b8702d23dac6cb9f04a1.tar.bz2
scummvm-rg350-0c677aacde925fdef989b8702d23dac6cb9f04a1.zip
MOHAWK: Add support for DOS v2 archives (CSWorld Deluxe)
svn-id: r54912
Diffstat (limited to 'engines/mohawk/resource.h')
-rw-r--r--engines/mohawk/resource.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/mohawk/resource.h b/engines/mohawk/resource.h
index a4f5f56be3..92bf68192f 100644
--- a/engines/mohawk/resource.h
+++ b/engines/mohawk/resource.h
@@ -214,13 +214,13 @@ public:
bool hasResource(uint32 tag, uint16 id);
bool hasResource(uint32 tag, const Common::String &resName) { return false; }
- bool open(Common::SeekableReadStream *stream);
+ virtual bool open(Common::SeekableReadStream *stream);
Common::SeekableReadStream *getResource(uint32 tag, uint16 id);
Common::SeekableReadStream *getResource(uint32 tag, const Common::String &resName) { return 0; }
uint32 getOffset(uint32 tag, uint16 id);
uint16 findResourceID(uint32 type, const Common::String &resName) { return 0xFFFF; }
-private:
+protected:
struct OldType {
uint32 tag;
uint16 resource_table_offset;
@@ -234,10 +234,19 @@ private:
} resTable;
} *_types;
+private:
int getTypeIndex(uint32 tag);
int getIDIndex(int typeIndex, uint16 id);
};
+class DOSArchive_v2 : public LivingBooksArchive_v1 {
+public:
+ DOSArchive_v2() : LivingBooksArchive_v1() {}
+ ~DOSArchive_v2() {}
+
+ virtual bool open(Common::SeekableReadStream *stream);
+};
+
} // End of namespace Mohawk
#endif