[saco] Rename sub_ to FUNC_

This commit is contained in:
RD42 2024-07-24 17:01:39 +08:00
parent b20c2ebd31
commit e37fa0474e
14 changed files with 34 additions and 34 deletions

View File

@ -463,7 +463,7 @@ void CheckFileNameHash(UINT *pDigest)
pDigest[4] == dwHandlingDigest[4] ) pDigest[4] == dwHandlingDigest[4] )
{ {
if(pGame) if(pGame)
pGame->sub_10062570(); pGame->FUNC_10062570();
} }
if( pDigest[0] == dwWeaponDigest[0] && if( pDigest[0] == dwWeaponDigest[0] &&
@ -473,7 +473,7 @@ void CheckFileNameHash(UINT *pDigest)
pDigest[4] == dwWeaponDigest[4] ) pDigest[4] == dwWeaponDigest[4] )
{ {
if(pGame) if(pGame)
pGame->sub_10062570(); pGame->FUNC_10062570();
} }
if( pDigest[0] == dwMeleeDigest[0] && if( pDigest[0] == dwMeleeDigest[0] &&
@ -483,7 +483,7 @@ void CheckFileNameHash(UINT *pDigest)
pDigest[4] == dwMeleeDigest[4] ) pDigest[4] == dwMeleeDigest[4] )
{ {
if(pGame) if(pGame)
pGame->sub_10062570(); pGame->FUNC_10062570();
} }
} }

View File

@ -3,7 +3,7 @@
//----------------------------------------------------------- //-----------------------------------------------------------
void CAudio::sub_100A21D0() void CAudio::FUNC_100A21D0()
{ {
if(field_0 && field_0 == 1) if(field_0 && field_0 == 1)
{ {

View File

@ -15,7 +15,7 @@ public:
field_4 = false; field_4 = false;
} }
void sub_100A21D0(); void FUNC_100A21D0();
int GetRadioStation(); int GetRadioStation();
void StartRadio(int iStation); void StartRadio(int iStation);
void StopRadio(); void StopRadio();

View File

@ -94,7 +94,7 @@ void CCamera::SetMatrix(MATRIX4X4 Matrix)
//----------------------------------------------------------- //-----------------------------------------------------------
// unused, also probably not part of CCamera // unused, also probably not part of CCamera
void sub_1009D560(bool unk) void FUNC_1009D560(bool unk)
{ {
byte_1014FD8C = 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; 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; if(!field_0 || field_0->m_pEntity) return;

View File

@ -21,8 +21,8 @@ public:
void Attach(int unk1, int unk2, int unk3); void Attach(int unk1, int unk2, int unk3);
void InterpolatePosition(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut); void InterpolatePosition(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut);
void InterpolateLookAt(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut); void InterpolateLookAt(VECTOR *vecFrom, VECTOR *vecTo, int iTime, BYTE byteCut);
void sub_1009D660(CEntity *pEntity); void FUNC_1009D660(CEntity *pEntity);
void sub_1009D6B0(); void FUNC_1009D6B0();
float GetDistanceFromPoint(VECTOR *vecPos); float GetDistanceFromPoint(VECTOR *vecPos);
CCamera() { CCamera() {

View File

@ -78,7 +78,7 @@ int CheckDuplicateD3D9Dlls()
//---------------------------------------------------------- //----------------------------------------------------------
void sub_1009DD50() void FUNC_1009DD50()
{ {
unknown_1014FDA4 = TRUE; unknown_1014FDA4 = TRUE;
} }

View File

@ -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; 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; int x=4;
while(x) { while(x) {
@ -136,7 +136,7 @@ void CEntity::SetTurnSpeedVector(VECTOR Vector)
} }
//----------------------------------------------------------- //-----------------------------------------------------------
void CEntity::sub_1009EE90() void CEntity::FUNC_1009EE90()
{ {
DWORD dwEnt = (DWORD)m_pEntity; DWORD dwEnt = (DWORD)m_pEntity;
if(!dwEnt) return; if(!dwEnt) return;
@ -148,7 +148,7 @@ void CEntity::sub_1009EE90()
//----------------------------------------------------------- //-----------------------------------------------------------
float CEntity::sub_1009EEB0() float CEntity::FUNC_1009EEB0()
{ {
DWORD dwEnt = (DWORD)m_pEntity; DWORD dwEnt = (DWORD)m_pEntity;
float fResult = 0.0f; 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; DWORD dwEnt = (DWORD)m_pEntity;
if(!dwEnt) return; 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; DWORD dwEnt = (DWORD)m_pEntity;
if(!dwEnt) return; if(!dwEnt) return;
@ -221,7 +221,6 @@ void CEntity::TeleportTo(float x, float y, float z)
//----------------------------------------------------------- //-----------------------------------------------------------
BOOL CEntity::sub_1009FDE0()
{ {
return m_pEntity return m_pEntity
&& m_pEntity->vtable != 0x863C40 && m_pEntity->vtable != 0x863C40

View File

@ -13,20 +13,20 @@ public:
void GetMatrix(PMATRIX4X4 Matrix); void GetMatrix(PMATRIX4X4 Matrix);
void SetMatrix(MATRIX4X4 Matrix); void SetMatrix(MATRIX4X4 Matrix);
void sub_1009EC80(); void FUNC_1009EC80();
void GetMoveSpeedVector(PVECTOR Vector); void GetMoveSpeedVector(PVECTOR Vector);
void SetMoveSpeedVector(VECTOR 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 GetTurnSpeedVector(PVECTOR Vector);
void SetTurnSpeedVector(VECTOR Vector); void SetTurnSpeedVector(VECTOR Vector);
void sub_1009EE90(); // unused void FUNC_1009EE90(); // unused
float sub_1009EEB0(); // unused float FUNC_1009EEB0(); // unused
void sub_1009EEF0(PVECTOR Vector); void FUNC_1009EEF0(PVECTOR Vector);
void sub_1009EF20(int a2); // unused void FUNC_1009EF20(int a2); // unused
UINT GetModelIndex(); UINT GetModelIndex();
void TeleportTo(float x, float y, float z); void TeleportTo(float x, float y, float z);
BOOL sub_1009FDE0(); BOOL FUNC_1009FDE0();
VECTOR field_4[5]; VECTOR field_4[5];
ENTITY_TYPE *m_pEntity; ENTITY_TYPE *m_pEntity;

View File

@ -87,7 +87,7 @@ public:
//----------------------------------------------------------- //-----------------------------------------------------------
void sub_10062570() { field_55++; }; void FUNC_10062570() { field_55++; };
CPlayerPed *FindPlayerPed() { CPlayerPed *FindPlayerPed() {
if(m_pGamePlayer==NULL) m_pGamePlayer = new CPlayerPed(); if(m_pGamePlayer==NULL) m_pGamePlayer = new CPlayerPed();

View File

@ -77,7 +77,7 @@ void LaunchMonitor(PVOID v)
while(1) { while(1) {
if(*(PDWORD)ADDR_ENTRY == 7) { if(*(PDWORD)ADDR_ENTRY == 7) {
sub_1009DD50(); FUNC_1009DD50();
pGame->StartGame(); pGame->StartGame();
break; break;
} }
@ -332,7 +332,7 @@ void DoInitStuff()
pConfig = new CConfig(szConfigFile); pConfig = new CConfig(szConfigFile);
timeBeginPeriod(1); // increases the accuracy of Sleep() timeBeginPeriod(1); // increases the accuracy of Sleep()
sub_1009DD50(); FUNC_1009DD50();
SubclassGameWindow(); SubclassGameWindow();
// Grab the real IDirect3D9 * from the game. // Grab the real IDirect3D9 * from the game.

View File

@ -28,12 +28,13 @@ CScoreBoard::CScoreBoard(IDirect3DDevice9 *pD3DDevice)
field_28 = 0.265625f; field_28 = 0.265625f;
field_2C = 0.437500f; field_2C = 0.437500f;
sub_1006E930(); FUNC_1006E930();
field_0 = 0; field_0 = 0;
} }
void CScoreBoard::sub_1006E930() // MATCH
void CScoreBoard::FUNC_1006E930()
{ {
RECT rect; RECT rect;

View File

@ -25,5 +25,5 @@ private:
public: public:
CScoreBoard(IDirect3DDevice9 *pD3DDevice); CScoreBoard(IDirect3DDevice9 *pD3DDevice);
void sub_1006E930(); void FUNC_1006E930();
}; };

View File

@ -9,10 +9,10 @@ CUnkClass15::CUnkClass15()
field_18 = 0; field_18 = 0;
m_pLight = NULL; m_pLight = NULL;
sub_1006BE40(); FUNC_1006BE40();
} }
bool CUnkClass15::sub_1006BE40() bool CUnkClass15::FUNC_1006BE40()
{ {
RwRGBAReal color; RwRGBAReal color;
VECTOR v; VECTOR v;

View File

@ -17,5 +17,5 @@ private:
public: public:
CUnkClass15(); CUnkClass15();
bool sub_1006BE40(); bool FUNC_1006BE40();
}; };