mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match CRenderer__RenderEverythingBarRoads_Hook
This commit is contained in:
+18
-1
@@ -9,6 +9,7 @@ extern int iGtaVersion;
|
||||
extern CNetGame* pNetGame;
|
||||
extern CGame* pGame;
|
||||
extern CChatWindow *pChatWindow;
|
||||
extern CObjectPool *unnamed_1014FFAC; // 0x1014FFAC, lives in another translation unit
|
||||
|
||||
extern DWORD dwGraphicsLoop; // Used for the external dll game loop.
|
||||
|
||||
@@ -54,6 +55,8 @@ DWORD unnamed_10151814;
|
||||
DWORD unnamed_10151818;
|
||||
DWORD unnamed_10151824;
|
||||
|
||||
CObjectPool *unnamed_1015177C;
|
||||
|
||||
WORD wLastRendObj=0;
|
||||
|
||||
BYTE Unk1_JmpCode[] = {0xFF,0x19,0xD1,0xBE,0x35,0x00};
|
||||
@@ -861,7 +864,21 @@ NUDE CWorld__ProcessAttachedEntities__PositionAttachedEntity_Hook()
|
||||
|
||||
NUDE CRenderer__RenderEverythingBarRoads_Hook()
|
||||
{
|
||||
// TODO: CRenderer__RenderEverythingBarRoads_Hook
|
||||
_asm mov eax, 0x553AA0 ;// CRenderer::RenderEverythingBarRoads
|
||||
_asm call eax
|
||||
|
||||
if(pNetGame) {
|
||||
unnamed_1015177C = pNetGame->GetObjectPool();
|
||||
if(unnamed_1015177C) {
|
||||
unnamed_1015177C->FUNC_10012B90();
|
||||
}
|
||||
}
|
||||
|
||||
if(unnamed_1014FFAC) {
|
||||
unnamed_1014FFAC->FUNC_10012B90();
|
||||
}
|
||||
|
||||
_asm ret
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
@@ -78,6 +78,7 @@ public:
|
||||
CVehiclePool * GetVehiclePool() { return m_pPools->pVehiclePool; };
|
||||
CPlayerPool * GetPlayerPool() { return m_pPools->pPlayerPool; };
|
||||
CPickupPool * GetPickupPool() { return m_pPools->pPickupPool; };
|
||||
CObjectPool * GetObjectPool() { return m_pPools->pObjectPool; };
|
||||
CGangZonePool * GetGangZonePool() { return m_pPools->pGangZonePool; };
|
||||
RakClientInterface * GetRakClient() { return m_pRakClient; };
|
||||
|
||||
|
||||
@@ -10,4 +10,7 @@ private:
|
||||
public:
|
||||
CObjectPool();
|
||||
|
||||
void FUNC_10012B90(); // .text:10012B90
|
||||
void FUNC_10012BD0(); // .text:10012BD0
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user