2424#include " CTrailerSA.h"
2525#include " CTrainSA.h"
2626#include " CWorldSA.h"
27- #include " CKeyGenSA.h"
28- #include " CFileLoaderSA.h"
29- #include " CPtrNodeSingleListSA.h"
3027
3128extern CGameSA* pGame;
3229
@@ -35,7 +32,6 @@ CPoolsSA::CPoolsSA()
3532 m_ppPedPoolInterface = (CPoolSAInterface<CPedSAInterface>**)0xB74490 ;
3633 m_ppObjectPoolInterface = (CPoolSAInterface<CObjectSAInterface>**)0xB7449C ;
3734 m_ppVehiclePoolInterface = (CPoolSAInterface<CVehicleSAInterface>**)0xB74494 ;
38- m_ppTxdPoolInterface = (CPoolSAInterface<CTextureDictonarySAInterface>**)0xC8800C ;
3935
4036 m_bGetVehicleEnabled = true ;
4137}
@@ -1107,40 +1103,3 @@ void CPoolsSA::InvalidateLocalPlayerClientEntity()
11071103{
11081104 m_pedPool.arrayOfClientEntities [0 ] = {m_pedPool.arrayOfClientEntities [0 ].pEntity , nullptr };
11091105}
1110-
1111- unsigned int CPoolsSA::AllocateTextureDictonarySlot (uint uiSlotId, std::string& strTxdName)
1112- {
1113- CTextureDictonarySAInterface* pTxd = (*m_ppTxdPoolInterface)->AllocateAt (uiSlotId);
1114- if (!pTxd)
1115- return -1 ;
1116-
1117- strTxdName.resize (24 );
1118-
1119- pTxd->usUsagesCount = 0 ;
1120- pTxd->hash = pGame->GetKeyGen ()->GetUppercaseKey (strTxdName.c_str ());
1121- pTxd->rwTexDictonary = nullptr ;
1122- pTxd->usParentIndex = -1 ;
1123-
1124- return (*m_ppTxdPoolInterface)->GetObjectIndex (pTxd);
1125- }
1126-
1127- void CPoolsSA::RemoveTextureDictonarySlot (uint uiTxdId)
1128- {
1129- if (!(*m_ppTxdPoolInterface)->IsContains (uiTxdId))
1130- return ;
1131-
1132- typedef uint (__cdecl * Function_TxdReleaseSlot)(uint uiTxdId);
1133- ((Function_TxdReleaseSlot)(0x731E90 ))(uiTxdId);
1134-
1135- (*m_ppTxdPoolInterface)->Release (uiTxdId);
1136- }
1137-
1138- bool CPoolsSA::IsFreeTextureDictonarySlot (uint uiTxdId)
1139- {
1140- return (*m_ppTxdPoolInterface)->IsEmpty (uiTxdId);
1141- }
1142-
1143- ushort CPoolsSA::GetFreeTextureDictonarySlot ()
1144- {
1145- return (*m_ppTxdPoolInterface)->GetFreeSlot ();
1146- }
0 commit comments