aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/files.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-06 23:21:10 +1000
committerPaul Gilbert2012-10-06 23:21:10 +1000
commit575f179f0f3fc62d4173115c141c6641f794c9ab (patch)
tree2769213b3d0cfa29b2c033c6a19e5636475c2a0a /engines/hopkins/files.h
parentb718039a8a1041b70db56be5c76e876f8c130079 (diff)
downloadscummvm-rg350-575f179f0f3fc62d4173115c141c6641f794c9ab.tar.gz
scummvm-rg350-575f179f0f3fc62d4173115c141c6641f794c9ab.tar.bz2
scummvm-rg350-575f179f0f3fc62d4173115c141c6641f794c9ab.zip
HOPKINS: Converted the file manager from static to a standard manager class
Diffstat (limited to 'engines/hopkins/files.h')
-rw-r--r--engines/hopkins/files.h41
1 files changed, 24 insertions, 17 deletions
diff --git a/engines/hopkins/files.h b/engines/hopkins/files.h
index 77361b2920..9aece5fba3 100644
--- a/engines/hopkins/files.h
+++ b/engines/hopkins/files.h
@@ -30,29 +30,36 @@
namespace Hopkins {
+class HopkinsEngine;
+
class FileManager {
public:
- static void initSaves();
- static bool SAUVE_FICHIER(const Common::String &file, const void *buf, size_t n);
- static bool bsave(const Common::String &file, const void *buf, size_t n);
- static void Chage_Inifile(Common::StringMap &iniParams);
- static byte *CHARGE_FICHIER(const Common::String &file);
- static void CHARGE_FICHIER2(const Common::String &file, byte *a2);
- static void DMESS();
- static void DMESS1();
- static void bload(const Common::String &file, byte *buf);
- static int bload_it(Common::ReadStream &stream, void *buf, size_t nbytes);
- static void F_Censure();
- static int CONSTRUIT_SYSTEM(const Common::String &file);
- static void CONSTRUIT_FICHIER(const Common::String &hop, const Common::String &file);
- static byte *LIBERE_FICHIER(byte *ptr);
- static byte *RECHERCHE_CAT(const Common::String &file, int a2);
- static Common::String CONSTRUIT_LINUX(const Common::String &file);
+ HopkinsEngine *_vm;
+public:
+ FileManager();
+ void setParent(HopkinsEngine *vm);
+
+ void initSaves();
+ bool SAUVE_FICHIER(const Common::String &file, const void *buf, size_t n);
+ bool bsave(const Common::String &file, const void *buf, size_t n);
+ void Chage_Inifile(Common::StringMap &iniParams);
+ byte *CHARGE_FICHIER(const Common::String &file);
+ void CHARGE_FICHIER2(const Common::String &file, byte *a2);
+ void DMESS();
+ void DMESS1();
+ void bload(const Common::String &file, byte *buf);
+ int bload_it(Common::ReadStream &stream, void *buf, size_t nbytes);
+ void F_Censure();
+ int CONSTRUIT_SYSTEM(const Common::String &file);
+ void CONSTRUIT_FICHIER(const Common::String &hop, const Common::String &file);
+ byte *LIBERE_FICHIER(byte *ptr);
+ byte *RECHERCHE_CAT(const Common::String &file, int a2);
+ Common::String CONSTRUIT_LINUX(const Common::String &file);
/**
* Returns the size of a file. Throws an error if the file can't be found
*/
- static uint32 FLONG(const Common::String &filename);
+ uint32 FLONG(const Common::String &filename);
};
} // End of namespace Hopkins