Skip to content

Commit

Permalink
Merge branch 'danielkrupinski:csgo' into csgo
Browse files Browse the repository at this point in the history
  • Loading branch information
nkxingxh authored Aug 3, 2024
2 parents ec751e1 + ef472aa commit f033a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ inline Memory::Memory(const ClientPatternFinder& clientPatternFinder, const Engi
const DynamicLibrary gameOverlayRenderer{ "gameoverlayrenderer.dll" };

PatternNotFoundHandler patternNotFoundHandler;
present = PatternFinder{ gameOverlayRenderer.getCodeSection().raw(), patternNotFoundHandler}("FF 15 ? ? ? ? 8B F0 85 FF"_pat).add(2).as<std::uintptr_t>();
reset = PatternFinder{ gameOverlayRenderer.getCodeSection().raw(), patternNotFoundHandler }("C7 45 ? ? ? ? ? FF 15 ? ? ? ? 8B D8"_pat).add(9).as<std::uintptr_t>();
present = PatternFinder{ gameOverlayRenderer.getCodeSection().raw(), patternNotFoundHandler}("8B 4D ? A1 ? ? ? ? 51 FF"_pat).add(4).as<std::uintptr_t>();
reset = PatternFinder{ gameOverlayRenderer.getCodeSection().raw(), patternNotFoundHandler }("E8 ? ? ? ? A1 ? ? ? ? 57 53"_pat).add(6).as<std::uintptr_t>();

clientMode = **reinterpret_cast<csgo::ClientMode***>((*reinterpret_cast<uintptr_t**>(clientInterface))[10] + 5);
input = *reinterpret_cast<csgo::Input**>((*reinterpret_cast<uintptr_t**>(clientInterface))[16] + 1);
Expand Down

0 comments on commit f033a99

Please sign in to comment.