Skip to content

Commit

Permalink
refactor: use memory util
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Jan 29, 2025
1 parent 968bd5f commit d764d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ bool Engine::Init() {

uintptr_t Init = s_EngineAPI->Original(Offsets::Init);
uintptr_t VideoMode_Create = Memory::Read(Init + Offsets::VideoMode_Create);
void **videomode = *(void ***)(VideoMode_Create + Offsets::videomode);
auto videomode = Memory::Deref<void **>(VideoMode_Create + Offsets::videomode);
Renderer::Init(videomode);
Stitcher::Init(videomode);

Expand Down

0 comments on commit d764d17

Please sign in to comment.