Use TEMPLATE syntax for MxHashTable decomp declarations

This commit is contained in:
Christian Semmler
2023-10-25 14:32:51 -04:00
parent a9a2c7d3b7
commit 220ad5d537
2 changed files with 9 additions and 6 deletions

View File

@@ -42,10 +42,8 @@ public:
m_customDestructor = Destroy;
}
// OFFSET: LEGO1 0x100afd30
static void Destroy(T*){};
// OFFSET: LEGO1 0x100afcd0
virtual MxS8 Compare(T*, T*) = 0;
protected:
@@ -72,7 +70,6 @@ public:
virtual MxS8 Compare(T*, T*) = 0;
// OFFSET: LEGO1 0x100afdc0
virtual MxU32 Hash(T*) = 0;
// FIXME: use of friend here?
@@ -154,7 +151,6 @@ private:
};
template <class T>
// OFFSET: LEGO1 0x100b0bd0
MxHashTable<T>::~MxHashTable()
{
for (int i = 0; i < m_numSlots; i++) {
@@ -175,7 +171,6 @@ MxHashTable<T>::~MxHashTable()
}
template <class T>
// OFFSET: LEGO1 0x100b7ab0
inline void MxHashTable<T>::Resize()
{
// Save a reference to the current table
@@ -212,7 +207,6 @@ inline void MxHashTable<T>::Resize()
}
template <class T>
// OFFSET: LEGO1 0x100b7b80
inline void MxHashTable<T>::_NodeInsert(MxHashTableNode<T>* p_node)
{
int bucket = p_node->m_hash % m_numSlots;

View File

@@ -21,4 +21,13 @@ public:
virtual MxU32 Hash(MxVariable*); // +0x18
};
// OFFSET: LEGO1 0x100b0bd0 TEMPLATE
// MxHashTable<MxVariable>::~MxHashTable<MxVariable>
// OFFSET: LEGO1 0x100b7ab0 TEMPLATE
// MxHashTable<MxVariable>::Resize
// OFFSET: LEGO1 0x100b7b80 TEMPLATE
// MxHashTable<MxVariable>::_NodeInsert
#endif // MXVARIABLETABLE_H