Small cleanup

This commit is contained in:
momo5502 2022-07-10 11:14:53 +02:00
parent 2ce99981ca
commit 56e124d867
3 changed files with 2 additions and 5 deletions

View File

@ -17,7 +17,7 @@ namespace game
T* get() const
{
return reinterpret_cast<T*>((uint64_t)address_);
return address_;
}
operator T* () const

View File

@ -5,11 +5,8 @@
namespace game
{
WEAK symbol<void(int localClientNum, const char* text)> Cbuf_AddText{0x1420EC8B0_g};
WEAK symbol<void(int channel, unsigned int label, const char* fmt, ...)> Com_Printf{0x1421499C0_g};
WEAK symbol<void(char* text, int maxSize)> Con_GetTextCopy{0x14133A7D0_g};
WEAK symbol<void()> Sys_ShowConsole{0x142333F80_g};
namespace s_wcd

View File

@ -131,7 +131,7 @@ namespace steam
{
const auto id = this->GetSteamID();
auth_ticket = "S1";
auth_ticket = "BOIII";
auth_ticket.resize(32);
auth_ticket.append(static_cast<char*>(pUserData), 24); // key
auth_ticket.append(reinterpret_cast<const char*>(&id.bits), sizeof(id.bits)); // user id