Skip to content

Commit

Permalink
fix: linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Nov 18, 2023
1 parent 139f2ed commit 68338b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Modules/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,11 @@ bool Client::Init() {
g_DrawTranslucentRenderablesHook.SetFunc(Client::DrawTranslucentRenderables);
g_DrawOpaqueRenderablesHook.SetFunc(Client::DrawOpaqueRenderables);

#ifdef _WIN32
Client::MsgPreSkipToNextLevel = (decltype(Client::MsgPreSkipToNextLevel))Memory::Scan(client->Name(), "57 8B F9 E8 ? ? ? ? 8B C8 E8 ? ? ? ? 0B C2");
#else
Client::MsgPreSkipToNextLevel = (decltype(Client::MsgPreSkipToNextLevel))Memory::Scan(client->Name(), "53 83 EC 08 E8 ? ? ? ? 83 EC 0C 50 E8 ? ? ? ? 83 C4 10 09 C2");
#endif

g_MsgPreSkipToNextLevelHook.SetFunc(Client::MsgPreSkipToNextLevel);

Expand Down

0 comments on commit 68338b7

Please sign in to comment.