Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Jan 19, 2024
1 parent 477edbc commit d64390a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Endpoints.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
extern "C"
{

auto SDLHook_PeepEvents_cpp() noexcept
cs2::SDL_PeepEvents SDLHook_PeepEvents_cpp() noexcept
{
const auto [original, shouldUnload] {GlobalContext::instance().peepEventsHook()};
if (shouldUnload)
GlobalContext::destroyInstance();
return original;
}

auto LoopModeGameHook_getWorldSession_cpp(const void* returnAddress) noexcept
cs2::CLoopModeGame::getWorldSession LoopModeGameHook_getWorldSession_cpp(const void* returnAddress) noexcept
{
return GlobalContext::instance().fullContext().getWorldSessionHook(ReturnAddress{returnAddress});
}
Expand Down

0 comments on commit d64390a

Please sign in to comment.