aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/simple_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/simple_file.h')
-rw-r--r--engines/titanic/simple_file.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/engines/titanic/simple_file.h b/engines/titanic/simple_file.h
index 0a452e49cd..b779fd0a35 100644
--- a/engines/titanic/simple_file.h
+++ b/engines/titanic/simple_file.h
@@ -36,6 +36,15 @@ class Decompressor;
class DecompressorData;
/**
+ * Simple ScummVM File descendent that throws a wobbly if
+ * the file it tries to open isn't present
+ */
+class File : public Common::File {
+public:
+ virtual bool open(const Common::String &name);
+};
+
+/**
* This class implements basic reading and writing to files
*/
class SimpleFile {
@@ -203,11 +212,18 @@ public:
}
};
+/**
+ * Derived file that handles WAD archives containing multiple files
+ */
class StdCWadFile : public SimpleFile {
-private:
- Common::File _file;
public:
- StdCWadFile(const CString &name);
+ StdCWadFile() : SimpleFile() {}
+ virtual ~StdCWadFile() {}
+
+ /**
+ * Open up the specified file
+ */
+ void open(const CString &name);
};
} // End of namespace Titanic