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.
| 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. |