MCPcopy Create free account
hub / github.com/Lovrom8/RSMods / IsOverlayCall

Function IsOverlayCall

DLL/Menu.cpp:26–28  ·  view source on GitHub ↗

Checks if the EndScene call originates from an overlay (e.g., Steam) instead of the game to prevent rendering our UI twice. True if the call is from an overlay, false otherwise.

Source from the content-addressed store, hash-verified

24 /// </summary>
25 /// <returns>True if the call is from an overlay, false otherwise.</returns>
26 bool IsOverlayCall() {
27 return (uint32_t)_ReturnAddress() > Offsets::baseEnd.Get();
28 }
29
30 /// <summary>
31 /// Renders the ImGui frame, including the main mod menu.

Callers 1

Hook_EndSceneMethod · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected