From bd0644a98f5ceea963613ff884ca188b872afb62 Mon Sep 17 00:00:00 2001 From: Oleg Trofimov Date: Wed, 30 Oct 2024 12:03:50 +0300 Subject: [PATCH] ALTV-469 changed GetHwidProtHash() to Gethwid3() --- c-api/cache/CachedPlayer.h | 4 ++-- c-api/entities/connection_info.cpp | 4 ++-- c-api/entities/connection_info.h | 2 +- c-api/entities/player.cpp | 4 ++-- c-api/entities/player.h | 2 +- c-api/func_table.cpp | 4 ++-- cpp-sdk | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/c-api/cache/CachedPlayer.h b/c-api/cache/CachedPlayer.h index 5d43738..40cd6f9 100644 --- a/c-api/cache/CachedPlayer.h +++ b/c-api/cache/CachedPlayer.h @@ -57,7 +57,7 @@ namespace cache _socialID(base->GetSocialID()), _hwidHash(base->GetHwidHash()), _hwidExHash(base->GetHwidExHash()), - _hwidProtHash(base->GetHwidProtHash()), + _hwid3(base->Gethwid3()), _authToken(base->GetAuthToken()), _discordId(base->GetDiscordId()), _invincible(base->GetInvincible()), @@ -329,7 +329,7 @@ namespace cache } std::string _hwidPtorHash; - std::string GetHwidProtHash() const override { return _hwidPtorHash; } + std::string Gethwid3() const override { return _hwidPtorHash; } std::string _authToken; std::string GetAuthToken() const override { diff --git a/c-api/entities/connection_info.cpp b/c-api/entities/connection_info.cpp index c6cfb92..566bc41 100644 --- a/c-api/entities/connection_info.cpp +++ b/c-api/entities/connection_info.cpp @@ -37,8 +37,8 @@ uint64_t ConnectionInfo_GetHwIdExHash(alt::IConnectionInfo* connectionInfo) { return connectionInfo->GetHwIdExHash(); } -std::string ConnectionInfo_GetHwIdProtHash(alt::IConnectionInfo* connectionInfo) { - return connectionInfo->GetHwIdProtHash(); +std::string ConnectionInfo_Gethwid3(alt::IConnectionInfo* connectionInfo) { + return connectionInfo->Gethwid3(); } const char* ConnectionInfo_GetAuthToken(alt::IConnectionInfo* connectionInfo, int32_t& size) { diff --git a/c-api/entities/connection_info.h b/c-api/entities/connection_info.h index 44bbcc9..f9a8178 100644 --- a/c-api/entities/connection_info.h +++ b/c-api/entities/connection_info.h @@ -22,7 +22,7 @@ EXPORT_SERVER uint64_t ConnectionInfo_GetSocialId(alt::IConnectionInfo* connecti EXPORT_SERVER const char* ConnectionInfo_GetSocialName(alt::IConnectionInfo* connectionInfo, int32_t& size); EXPORT_SERVER uint64_t ConnectionInfo_GetHwIdHash(alt::IConnectionInfo* connectionInfo); EXPORT_SERVER uint64_t ConnectionInfo_GetHwIdExHash(alt::IConnectionInfo* connectionInfo); -EXPORT_SERVER const char* ConnectionInfo_GetHwIdProtHash(alt::IConnectionInfo* connectionInfo); +EXPORT_SERVER const char* ConnectionInfo_Gethwid3(alt::IConnectionInfo* connectionInfo); EXPORT_SERVER const char* ConnectionInfo_GetAuthToken(alt::IConnectionInfo* connectionInfo, int32_t& size); EXPORT_SERVER uint8_t ConnectionInfo_GetIsDebug(alt::IConnectionInfo* connectionInfo); EXPORT_SERVER const char* ConnectionInfo_GetBranch(alt::IConnectionInfo* connectionInfo, int32_t& size); diff --git a/c-api/entities/player.cpp b/c-api/entities/player.cpp index 4b81ff3..247fa71 100644 --- a/c-api/entities/player.cpp +++ b/c-api/entities/player.cpp @@ -246,8 +246,8 @@ uint64_t Player_GetHwidExHash(alt::IPlayer* player) { return player->GetHwidExHash(); } -std::string Player_GetHwidProtHash(alt::IPlayer* player) { - return player->GetHwidProtHash(); +std::string Player_Gethwid3(alt::IPlayer* player) { + return player->Gethwid3(); } const char* Player_GetAuthToken(alt::IPlayer* player, int32_t& size) { diff --git a/c-api/entities/player.h b/c-api/entities/player.h index 4e22e5f..fa156de 100644 --- a/c-api/entities/player.h +++ b/c-api/entities/player.h @@ -77,7 +77,7 @@ EXPORT_SERVER void Player_SetModel(alt::IPlayer* player, uint32_t model); EXPORT_SERVER uint64_t Player_GetSocialID(alt::IPlayer* player); EXPORT_SERVER uint64_t Player_GetHwidHash(alt::IPlayer* player); EXPORT_SERVER uint64_t Player_GetHwidExHash(alt::IPlayer* player); -EXPORT_SERVER const char* Player_GetHwidProtHash(alt::IPlayer* player); +EXPORT_SERVER const char* Player_Gethwid3(alt::IPlayer* player); EXPORT_SERVER const char* Player_GetAuthToken(alt::IPlayer* player, int32_t& size); EXPORT_SERVER void Player_SetHealth(alt::IPlayer* player, uint16_t health); diff --git a/c-api/func_table.cpp b/c-api/func_table.cpp index 400db8a..31964ce 100644 --- a/c-api/func_table.cpp +++ b/c-api/func_table.cpp @@ -3124,7 +3124,7 @@ inline void* capiPointers[] = { (void*) ConnectionInfo_GetCloudID, (void*) ConnectionInfo_GetDiscordUserID, (void*) ConnectionInfo_GetHwIdExHash, - (void*) ConnectionInfo_GetHwIdProtHash, + (void*) ConnectionInfo_Gethwid3, (void*) ConnectionInfo_GetHwIdHash, (void*) ConnectionInfo_GetID, (void*) ConnectionInfo_GetIp, @@ -3284,7 +3284,7 @@ inline void* capiPointers[] = { (void*) Player_GetHeadBlendPaletteColor, (void*) Player_GetHeadOverlay, (void*) Player_GetHwidExHash, - (void*) Player_GetHwidProtHash, + (void*) Player_Gethwid3, (void*) Player_GetHwidHash, (void*) Player_GetInteriorLocation, (void*) Player_GetInvincible, diff --git a/cpp-sdk b/cpp-sdk index b782525..3abb758 160000 --- a/cpp-sdk +++ b/cpp-sdk @@ -1 +1 @@ -Subproject commit b7825258fafcb6d9aa3906b41e27cfe2d8bf93af +Subproject commit 3abb758d40bfc86048fcba818397490afe1e76fe