aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/SysClass.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/SysClass.h')
-rw-r--r--engines/wintermute/SysClass.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/engines/wintermute/SysClass.h b/engines/wintermute/SysClass.h
index 48d7a2626e..bcd63cc5e4 100644
--- a/engines/wintermute/SysClass.h
+++ b/engines/wintermute/SysClass.h
@@ -30,10 +30,21 @@
#define WINTERMUTE_SYSCLASS_H
#include "persistent.h"
-#include <set>
-#include <map>
#include "dctypes.h"
+//#include <set>
+//#include <map>
+#include "common/hashmap.h"
+#include "common/func.h"
+namespace Common {
+template<typename T> struct Hash;
+
+template<> struct Hash<void*> : public UnaryFunction<void*, uint> {
+ uint operator()(void* val) const { return (uint)((size_t)val); }
+};
+
+}
+
namespace WinterMute {
class CSysInstance;
class CBGame;
@@ -80,7 +91,7 @@ public:
void ResetSavedIDs();
- void Dump(FILE *stream);
+ void Dump(void *stream);
private:
int m_NumInst;
@@ -92,10 +103,10 @@ private:
PERSISTBUILD m_Build;
PERSISTLOAD m_Load;
- typedef std::set<CSysInstance *> Instances;
- Instances m_Instances;
+ //typedef std::set<CSysInstance *> Instances;
+ //Instances m_Instances;
- typedef std::map<void *, CSysInstance *> InstanceMap;
+ typedef Common::HashMap<void *, CSysInstance *> InstanceMap;
InstanceMap m_InstanceMap;
};