mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Rename sub_
to FUNC_
This commit is contained in:
parent
b20c2ebd31
commit
e37fa0474e
@ -463,7 +463,7 @@ void CheckFileNameHash(UINT *pDigest)
|
||||
pDigest[4] == dwHandlingDigest[4] )
|
||||
{
|
||||
if(pGame)
|
||||
pGame->sub_10062570();
|
||||
pGame->FUNC_10062570();
|
||||
}
|
||||
|
||||
if( pDigest[0] == dwWeaponDigest[0] &&
|
||||
@ -473,7 +473,7 @@ void CheckFileNameHash(UINT *pDigest)
|
||||
pDigest[4] == dwWeaponDigest[4] )
|
||||
{
|
||||
if(pGame)
|
||||
pGame->sub_10062570();
|
||||
pGame->FUNC_10062570();
|
||||
}
|
||||
|
||||
if( pDigest[0] == dwMeleeDigest[0] &&
|
||||
@ -483,7 +483,7 @@ void CheckFileNameHash(UINT *pDigest)
|
||||
pDigest[4] == dwMeleeDigest[4] )
|
||||
{
|
||||
if(pGame)
|
||||
pGame->sub_10062570();
|
||||
pGame->FUNC_10062570();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CAudio::sub_100A21D0()
|
||||
void CAudio::FUNC_100A21D0()
|
||||
{
|
||||
if(field_0 && field_0 == 1)
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
field_4 = false;
|
||||
}
|
||||
|
||||
void sub_100A21D0();
|
||||
void FUNC_100A21D0();
|
||||
int GetRadioStation();
|
||||
void StartRadio(int iStation);
|
||||
void StopRadio();
|
||||
|
@ -94,7 +94,7 @@ void CCamera::SetMatrix(MATRIX4X4 Matrix)
|
||||
//-----------------------------------------------------------
|
||||
|
||||
// unused, also probably not part of CCamera
|
||||
void sub_1009D560(bool unk)
|
||||
void FUNC_1009D560(bool unk)
|
||||
{
|
||||
byte_1014FD8C = unk;
|
||||
}
|
||||
@ -131,7 +131,7 @@ void CCamera::InterpolateLookAt(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CCamera::sub_1009D660(CEntity *pEntity)
|
||||
void CCamera::FUNC_1009D660(CEntity *pEntity)
|
||||
{
|
||||
field_0 = pEntity;
|
||||
|
||||
@ -146,7 +146,7 @@ void CCamera::sub_1009D660(CEntity *pEntity)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CCamera::sub_1009D6B0()
|
||||
void CCamera::FUNC_1009D6B0()
|
||||
{
|
||||
if(!field_0 || field_0->m_pEntity) return;
|
||||
|
||||
|
@ -21,8 +21,8 @@ public:
|
||||
void Attach(int unk1, int unk2, int unk3);
|
||||
void InterpolatePosition(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut);
|
||||
void InterpolateLookAt(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut);
|
||||
void sub_1009D660(CEntity *pEntity);
|
||||
void sub_1009D6B0();
|
||||
void FUNC_1009D660(CEntity *pEntity);
|
||||
void FUNC_1009D6B0();
|
||||
float GetDistanceFromPoint(VECTOR *vecPos);
|
||||
|
||||
CCamera() {
|
||||
|
@ -78,7 +78,7 @@ int CheckDuplicateD3D9Dlls()
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
void sub_1009DD50()
|
||||
void FUNC_1009DD50()
|
||||
{
|
||||
unknown_1014FDA4 = TRUE;
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ void CEntity::SetMatrix(MATRIX4X4 Matrix)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CEntity::sub_1009EC80()
|
||||
void CEntity::FUNC_1009EC80()
|
||||
{
|
||||
if(!m_pEntity || m_pEntity->vtable == 0x863C40) return;
|
||||
|
||||
@ -95,7 +95,7 @@ void CEntity::SetMoveSpeedVector(VECTOR Vector)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CEntity::sub_1009ED40(float fX, float fY, float fZ)
|
||||
void CEntity::FUNC_1009ED40(float fX, float fY, float fZ)
|
||||
{
|
||||
int x=4;
|
||||
while(x) {
|
||||
@ -136,7 +136,7 @@ void CEntity::SetTurnSpeedVector(VECTOR Vector)
|
||||
}
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CEntity::sub_1009EE90()
|
||||
void CEntity::FUNC_1009EE90()
|
||||
{
|
||||
DWORD dwEnt = (DWORD)m_pEntity;
|
||||
if(!dwEnt) return;
|
||||
@ -148,7 +148,7 @@ void CEntity::sub_1009EE90()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
float CEntity::sub_1009EEB0()
|
||||
float CEntity::FUNC_1009EEB0()
|
||||
{
|
||||
DWORD dwEnt = (DWORD)m_pEntity;
|
||||
float fResult = 0.0f;
|
||||
@ -165,7 +165,7 @@ float CEntity::sub_1009EEB0()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CEntity::sub_1009EEF0(PVECTOR Vector)
|
||||
void CEntity::FUNC_1009EEF0(PVECTOR Vector)
|
||||
{
|
||||
DWORD dwEnt = (DWORD)m_pEntity;
|
||||
if(!dwEnt) return;
|
||||
@ -178,7 +178,7 @@ void CEntity::sub_1009EEF0(PVECTOR Vector)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CEntity::sub_1009EF20(int a2)
|
||||
void CEntity::FUNC_1009EF20(int a2)
|
||||
{
|
||||
DWORD dwEnt = (DWORD)m_pEntity;
|
||||
if(!dwEnt) return;
|
||||
@ -221,7 +221,6 @@ void CEntity::TeleportTo(float x, float y, float z)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CEntity::sub_1009FDE0()
|
||||
{
|
||||
return m_pEntity
|
||||
&& m_pEntity->vtable != 0x863C40
|
||||
|
@ -13,20 +13,20 @@ public:
|
||||
|
||||
void GetMatrix(PMATRIX4X4 Matrix);
|
||||
void SetMatrix(MATRIX4X4 Matrix);
|
||||
void sub_1009EC80();
|
||||
void FUNC_1009EC80();
|
||||
void GetMoveSpeedVector(PVECTOR Vector);
|
||||
void SetMoveSpeedVector(VECTOR Vector);
|
||||
void sub_1009ED40(float fX, float fY, float fZ); // unused
|
||||
void FUNC_1009ED40(float fX, float fY, float fZ); // unused
|
||||
void GetTurnSpeedVector(PVECTOR Vector);
|
||||
void SetTurnSpeedVector(VECTOR Vector);
|
||||
void sub_1009EE90(); // unused
|
||||
float sub_1009EEB0(); // unused
|
||||
void sub_1009EEF0(PVECTOR Vector);
|
||||
void sub_1009EF20(int a2); // unused
|
||||
void FUNC_1009EE90(); // unused
|
||||
float FUNC_1009EEB0(); // unused
|
||||
void FUNC_1009EEF0(PVECTOR Vector);
|
||||
void FUNC_1009EF20(int a2); // unused
|
||||
UINT GetModelIndex();
|
||||
void TeleportTo(float x, float y, float z);
|
||||
|
||||
BOOL sub_1009FDE0();
|
||||
BOOL FUNC_1009FDE0();
|
||||
|
||||
VECTOR field_4[5];
|
||||
ENTITY_TYPE *m_pEntity;
|
||||
|
@ -87,7 +87,7 @@ public:
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void sub_10062570() { field_55++; };
|
||||
void FUNC_10062570() { field_55++; };
|
||||
|
||||
CPlayerPed *FindPlayerPed() {
|
||||
if(m_pGamePlayer==NULL) m_pGamePlayer = new CPlayerPed();
|
||||
|
@ -77,7 +77,7 @@ void LaunchMonitor(PVOID v)
|
||||
|
||||
while(1) {
|
||||
if(*(PDWORD)ADDR_ENTRY == 7) {
|
||||
sub_1009DD50();
|
||||
FUNC_1009DD50();
|
||||
pGame->StartGame();
|
||||
break;
|
||||
}
|
||||
@ -332,7 +332,7 @@ void DoInitStuff()
|
||||
pConfig = new CConfig(szConfigFile);
|
||||
|
||||
timeBeginPeriod(1); // increases the accuracy of Sleep()
|
||||
sub_1009DD50();
|
||||
FUNC_1009DD50();
|
||||
SubclassGameWindow();
|
||||
|
||||
// Grab the real IDirect3D9 * from the game.
|
||||
|
@ -28,12 +28,13 @@ CScoreBoard::CScoreBoard(IDirect3DDevice9 *pD3DDevice)
|
||||
field_28 = 0.265625f;
|
||||
field_2C = 0.437500f;
|
||||
|
||||
sub_1006E930();
|
||||
FUNC_1006E930();
|
||||
|
||||
field_0 = 0;
|
||||
}
|
||||
|
||||
void CScoreBoard::sub_1006E930()
|
||||
// MATCH
|
||||
void CScoreBoard::FUNC_1006E930()
|
||||
{
|
||||
RECT rect;
|
||||
|
||||
|
@ -25,5 +25,5 @@ private:
|
||||
public:
|
||||
CScoreBoard(IDirect3DDevice9 *pD3DDevice);
|
||||
|
||||
void sub_1006E930();
|
||||
void FUNC_1006E930();
|
||||
};
|
||||
|
@ -9,10 +9,10 @@ CUnkClass15::CUnkClass15()
|
||||
field_18 = 0;
|
||||
m_pLight = NULL;
|
||||
|
||||
sub_1006BE40();
|
||||
FUNC_1006BE40();
|
||||
}
|
||||
|
||||
bool CUnkClass15::sub_1006BE40()
|
||||
bool CUnkClass15::FUNC_1006BE40()
|
||||
{
|
||||
RwRGBAReal color;
|
||||
VECTOR v;
|
||||
|
@ -17,5 +17,5 @@ private:
|
||||
public:
|
||||
CUnkClass15();
|
||||
|
||||
bool sub_1006BE40();
|
||||
bool FUNC_1006BE40();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user