Skip to content

Commit

Permalink
Fix build by fixing GAME_VerifyJoinGme signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Lectem committed Dec 30, 2023
1 parent ad63d1a commit 726856c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/D2Game/include/GAME/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void __fastcall sub_6FC36C20(D2GameStrc* pGame, int32_t nClientId, const char* s
//D2Game.0x6FC36C60
void __fastcall GAME_SendActInit(int32_t nClientId);
//D2Game.0x6FC36DF0
int32_t __fastcall GAME_VerifyJoinGme(int32_t nClientId, uint16_t nGameId, uint8_t nPlayerClass, const char* szClientName, int32_t nToken, const char* szAccountName, int32_t* a7, uint8_t nLocale, int32_t* a9, int32_t* a10);
int32_t __fastcall GAME_VerifyJoinGme(int32_t nClientId, uint16_t nGameId, uint8_t nPlayerClass, const char* szClientName, int32_t nToken, char* szAccountName, int32_t* a7, uint8_t nLocale, int32_t* a9, int32_t* a10);
//D2Game.0x6FC37150
void __fastcall GAME_JoinGame(int32_t dwClientId, uint16_t nGameId, int32_t a3, char* szClientName, char* szAccountName, int32_t a6, int32_t a7, int32_t a8, int32_t a9);
//D2Game.0x6FC37450
Expand Down
3 changes: 1 addition & 2 deletions source/D2Game/src/GAME/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,7 @@ void __fastcall GAME_SendActInit(int32_t nClientId)
}

//D2Game.0x6FC36DF0
int32_t __fastcall GAME_VerifyJoinGme(int32_t nClientId, uint16_t nGameId, uint8_t nPlayerClass, const char* szClientName, int32_t nToken, const char* szAccountName, int32_t* a7, uint8_t nLocale, int32_t* a9, int32_t* a10)
{
int32_t __fastcall GAME_VerifyJoinGme(int32_t nClientId, uint16_t nGameId, uint8_t nPlayerClass, const char* szClientName, int32_t nToken, char* szAccountName, int32_t* a7, uint8_t nLocale, int32_t* a9, int32_t* a10) {
if (!CCMD_IsStringZeroTerminated(szClientName, 16))
{
GAME_LogMessage(3, "[HACKLIST] <D2CLTSYS_JOINGAME> CLIENT:%d GAMEID:%d TOKEN:%x ERROR: Invalid Player Name", nClientId, nGameId, nToken);
Expand Down

0 comments on commit 726856c

Please sign in to comment.