1.1 --- a/core/logic/GameConfigs.h Sun Aug 25 01:42:15 2013 -0700
1.2 +++ b/core/logic/GameConfigs.h Sun Aug 25 01:42:16 2013 -0700
1.3 @@ -35,10 +35,10 @@
1.4 #include "common_logic.h"
1.5 #include <IGameConfigs.h>
1.6 #include <ITextParsers.h>
1.7 -#include <sh_list.h>
1.8 #include "sm_memtable.h"
1.9 #include <sm_trie_tpl.h>
1.10 #include <am-refcounting.h>
1.11 +#include <sm_stringhashmap.h>
1.12
1.13 using namespace SourceMod;
1.14 using namespace SourceHook;
1.15 @@ -73,10 +73,10 @@
1.16 ke::AutoPtr<BaseStringTable> m_pStrings;
1.17 char m_File[PLATFORM_MAX_PATH];
1.18 char m_CurFile[PLATFORM_MAX_PATH];
1.19 - KTrie<int> m_Offsets;
1.20 + StringHashMap<int> m_Offsets;
1.21 KTrie<SendProp *> m_Props;
1.22 - KTrie<int> m_Keys;
1.23 - KTrie<void *> m_Sigs;
1.24 + StringHashMap<int> m_Keys;
1.25 + StringHashMap<void *> m_Sigs;
1.26 /* Parse states */
1.27 int m_ParseState;
1.28 unsigned int m_IgnoreLevel;
1.29 @@ -110,7 +110,7 @@
1.30 char m_AddressSignature[64];
1.31 int m_AddressReadCount;
1.32 int m_AddressRead[8];
1.33 - ke::AutoPtr<KTrie<AddressConf> > m_pAddresses;
1.34 + StringHashMap<AddressConf> m_Addresses;
1.35 const char *m_pEngine;
1.36 const char *m_pBaseEngine;
1.37 };
1.38 @@ -139,10 +139,9 @@
1.39 public:
1.40 void RemoveCachedConfig(CGameConfig *config);
1.41 private:
1.42 - List<CGameConfig *> m_cfgs;
1.43 KTrie<CGameConfig *> m_Lookup;
1.44 public:
1.45 - KTrie<ITextListener_SMC *> m_customHandlers;
1.46 + StringHashMap<ITextListener_SMC *> m_customHandlers;
1.47 };
1.48
1.49 extern GameConfigManager g_GameConfigs;