aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/resources.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/resources.h')
-rw-r--r--engines/mads/resources.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/engines/mads/resources.h b/engines/mads/resources.h
index 68bb475aee..f4b7009e13 100644
--- a/engines/mads/resources.h
+++ b/engines/mads/resources.h
@@ -24,7 +24,7 @@
#define MADS_RESOURCES_H
#include "common/scummsys.h"
-#include "common/stream.h"
+#include "common/file.h"
#include "common/str.h"
namespace MADS {
@@ -32,29 +32,32 @@ namespace MADS {
class MADSEngine;
class ResourcesManager {
-private:
- MADSEngine *_vm;
public:
- ResourcesManager(MADSEngine *vm);
+ /**
+ * Instantiates the resource manager
+ */
+ static void init(MADSEngine *vm);
+};
+/**
+ * Derived file class
+ */
+class File: public Common::File {
+public:
/**
- * Return a named resource
+ * Constructor
*/
- Common::SeekableReadStream *get(const Common::String &resourceName, bool loadFlag = false) {
- // TODO
- return nullptr;
- }
+ File(): Common::File() {}
- Common::SeekableReadStream *openFile(const Common::String &resourceName) {
- return get(resourceName, false);
- }
+ /**
+ * Constructor
+ */
+ File(const Common::String &filename) { openFile(filename); }
/**
- * Release a previously loaded resource
+ * Opens the given file, throwing an error if it can't be opened
*/
- void toss(const Common::String &resourceName) {
- // TODO
- }
+ void openFile(const Common::String &filename);
};
} // End of namespace MADS