[saco] Implement/match ScrShowMenu and ScrHideMenu; CNetGame::GetMenuPool is an inline, not an out-of-line call

This commit is contained in:
ricardoofnl
2026-09-03 02:55:46 +07:00
parent 79f96e1555
commit 4edeb5b18c
2 changed files with 31 additions and 3 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ public:
void SetMapIcon(BYTE byteIndex, float fX, float fY, float fZ, BYTE byteIcon, DWORD dwColor, int iStyle);
void DisableMapIcon(BYTE byteIndex);
CMenuPool * GetMenuPool(); // .text:100084F0
CMenuPool * GetMenuPool() { return m_pPools->pMenuPool; }; // .text:100084F0
int ToggleNameTagStatus(); // .text:10008E90
void sub_1000A540(); // .text:1000A540
};
+30 -2
View File
@@ -350,8 +350,36 @@ void ScrUnkB0(RPCParameters *rpcParams) {}
void ScrUnkB2(RPCParameters *rpcParams) {}
void ScrUnk30(RPCParameters *rpcParams) {}
void ScrInitMenu(RPCParameters *rpcParams) {}
void ScrShowMenu(RPCParameters *rpcParams) {}
void ScrHideMenu(RPCParameters *rpcParams) {}
void ScrShowMenu(RPCParameters *rpcParams)
{
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
int iBitLength = rpcParams->numberOfBitsOfData;
PlayerID sender = rpcParams->sender;
BYTE byteMenuID;
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
if(!pNetGame) return;
bsData.Read(byteMenuID);
pNetGame->GetMenuPool()->ShowMenu(byteMenuID);
}
void ScrHideMenu(RPCParameters *rpcParams)
{
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
int iBitLength = rpcParams->numberOfBitsOfData;
PlayerID sender = rpcParams->sender;
BYTE byteMenuID;
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
if(!pNetGame) return;
bsData.Read(byteMenuID);
pNetGame->GetMenuPool()->HideMenu(byteMenuID);
}
//----------------------------------------------------