mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Match ScrUnk30 and CDownloadList::FUNC_10017D10; the guarded three-field update is an inline member, so the handler and its out-of-line COMDAT fall together
This commit is contained in:
1 parent
1df2731742
commit
39edc13d51
3 files changed
+30
-3
No files matched your search
@@ -65,6 +65,19 @@ public:
|
||||
char field_8;
|
||||
char szDir1[0x105];
|
||||
char szDir2[0x105];
|
||||
char _gap213[4];
|
||||
DWORD field_217;
|
||||
char _gap21B[5];
|
||||
BYTE field_220;
|
||||
BYTE field_221;
|
||||
|
||||
void FUNC_10017D10(int a1) { // .text:10017D10
|
||||
if(field_217 != a1) {
|
||||
field_217 = a1;
|
||||
field_221 = 0;
|
||||
field_220 = 0;
|
||||
}
|
||||
};
|
||||
|
||||
DOWNLOAD_ENTRY *GetAt(DWORD dwIndex) { if(dwIndex >= m_dwCount) return NULL; return m_pEntries[dwIndex]; }
|
||||
|
||||
|
||||
@@ -136,7 +136,6 @@ public:
|
||||
void sub_10003C20(); // .text:10003C20
|
||||
void sub_10003BE0(SPAWN_INFO *pSpawnInfo); // .text:10003BE0
|
||||
void sub_100040E0(BOOL bSpawn); // .text:100040E0
|
||||
void sub_100041C0(int a1); // .text:100041C0
|
||||
void sub_100030F0(BYTE a1); // .text:100030F0
|
||||
void sub_10003710(int a1, int a2); // .text:10003710
|
||||
void sub_10004060(); // .text:10004060
|
||||
|
||||
+17
-2
@@ -7,6 +7,7 @@ extern CNetGame* pNetGame;
|
||||
extern CGame * pGame;
|
||||
extern CAudioStream * pAudioStream;
|
||||
extern CChatWindow * pChatWindow;
|
||||
extern CDownloadList * dword_1026EB98;
|
||||
|
||||
char pText[257];
|
||||
|
||||
@@ -320,7 +321,7 @@ void ScrUnk7C(RPCParameters *rpcParams)
|
||||
|
||||
bsData.Read(iUnk);
|
||||
|
||||
pPlayerPool->GetLocalPlayer()->sub_100041C0(iUnk);
|
||||
pPlayerPool->GetLocalPlayer()->FUNC_100041C0(iUnk);
|
||||
}
|
||||
|
||||
void ScrUnk7D(RPCParameters *rpcParams)
|
||||
@@ -1310,7 +1311,21 @@ void ScrUnkB0(RPCParameters *rpcParams)
|
||||
}
|
||||
}
|
||||
void ScrUnkB2(RPCParameters *rpcParams) {}
|
||||
void ScrUnk30(RPCParameters *rpcParams) {}
|
||||
void ScrUnk30(RPCParameters *rpcParams)
|
||||
{
|
||||
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
|
||||
int iBitLength = rpcParams->numberOfBitsOfData;
|
||||
PlayerID sender = rpcParams->sender;
|
||||
|
||||
int iUnk;
|
||||
|
||||
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
|
||||
|
||||
iUnk = 0;
|
||||
bsData.Read(iUnk);
|
||||
|
||||
if(dword_1026EB98) dword_1026EB98->FUNC_10017D10(iUnk);
|
||||
}
|
||||
void ScrInitMenu(RPCParameters *rpcParams)
|
||||
{
|
||||
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
|
||||
|
||||
Reference in new issue
Block a user