Skip to content

Commit f9f7cdc

Browse files
committed
fix: linux (!!)
1 parent 4f79140 commit f9f7cdc

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Modules/Client.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,10 +1213,9 @@ bool Client::Init() {
12131213
Panel_SetPos = Memory::Read<decltype(Panel_SetPos)>(Memory::Scan(this->Name(), Offsets::Panel_SetPos, 1));
12141214
Panel_SetSize = Memory::Read<decltype(Panel_SetSize)>(Memory::Scan(this->Name(), Offsets::Panel_SetSize, 1));
12151215
Client::SetPlayerData = Memory::Read<decltype(Client::SetPlayerData)>(Memory::Scan(this->Name(), Offsets::SetPlayerData, 1));
1216-
#ifdef _WIN32
12171216
CGameUiAvatarImage_Ctor = (decltype(CGameUiAvatarImage_Ctor))Memory::Scan(this->Name(), Offsets::CGameUiAvatarImage_Ctor);
1218-
#else
1219-
CGameUiAvatarImage_Ctor = Memory::Read<decltype(CGameUiAvatarImageCtor)>(Memory::Scan(this->Name(), Offsets::CGameUiAvatarImage_Ctor, 1));
1217+
#ifndef _WIN32
1218+
CGameUiAvatarImage_Ctor = Memory::Read<decltype(CGameUiAvatarImage_Ctor)>((uintptr_t)CGameUiAvatarImage_Ctor);
12201219
#endif
12211220
CGameUiAvatarImage_InitFromRGBA = Memory::Read<decltype(CGameUiAvatarImage_InitFromRGBA)>(Memory::Scan(this->Name(), Offsets::CGameUiAvatarImage_InitFromRGBA, 1));
12221221
Client::ActivateSelectedItem = (decltype(Client::ActivateSelectedItem))Memory::Scan(this->Name(), Offsets::ActivateSelectedItem);

src/Offsets/Portal 2 8491.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ SIGSCAN_DEFAULT(SetPlayerData, "E8 ? ? ? ? EB 2C A1 ? ? ? ?",
453453
// .text:00318CDD E8 8E B5 FF FF call CGameUiAvatarImage__CGameUiAvatarImage
454454
// ...
455455
// .text:00318D98 68 30 60 7E 00 push offset aAvatarImageFor ; "Avatar image for user %llX cached [refc"...
456-
SIGSCAN_DEFAULT(CGameUiAvatarImage_Ctor, "56 6A 00 8B F1 6A 00 C7 06",
457-
"E8 ? ? ? ? 8B 45 18 89 74 24 04 89 7C 24 08")
456+
SIGSCAN_DEFAULT(CGameUiAvatarImage_CtorSig, "56 6A 00 8B F1 6A 00 C7 06",
457+
"E8 ? ? ? ? 8B 45 18 89 74 24 04 89 7C 24 08")
458+
OFFSET_DEFAULT(CGameUiAvatarImage_CtorOff, 0, 1)
458459
// @ xref: "icon_lobby" (fn with Plat_FloatTime call)
459460
SIGSCAN_DEFAULT(CGameUiAvatarImage_InitFromRGBA, "E8 ? ? ? ? 8A 46 1C",
460461
"E8 ? ? ? ? 0F B6 43 1C")

0 commit comments

Comments
 (0)