Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
holysnipz committed Jan 21, 2025
1 parent a7f2f8a commit 1792e8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ChaosMod/Memory/Drawing.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ namespace Memory
}

AllocateDrawRect = handle.At(0x56).Into().Get<char *(void *)>();
SetDrawRectCoords = handle.At(0x92).Into().Get<void(void *, float, float, float, float)>();

auto offsetSDC = getGameVersion() < eGameVersion::VER_1_0_3407_0 ? 0x92 : 0x97;
SetDrawRectCoords = handle.At(offsetSDC).Into().Get<void(void *, float, float, float, float)>();

drawRects = handle.At(0x32).Into().Get<char>();
drawRectsSize = handle.At(0x2C).Value<int>();
Expand Down
2 changes: 1 addition & 1 deletion ChaosMod/Memory/Hooks/MiscHooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static bool OnHook()
{
Handle handle;

handle = Memory::FindPattern("E8 ? ? ? ? 4D 03 F5");
handle = Memory::FindPattern("E8 ? ? ? ? 4D 03 F5 48");
if (!handle.IsValid())
LOG("crSkeleton::GetGlobalMtx not found!");
else
Expand Down

0 comments on commit 1792e8a

Please sign in to comment.