// thunks.h — replacement functions called by patched code paths #pragma once extern "C" { // v5 replacement vtable slot 2 functions. __thiscall so vtable call ABI matches. int __fastcall purge_rendersurface_thunk(void* self, void* /*edx_unused*/); int __fastcall purge_rendertexture_thunk(void* self, void* /*edx_unused*/); // v14 — naked thunk JMPed to from 0x0052E661. // Saves regs, frees inner ClipPlaneList, frees outer wrapper, clears the // back-pointer at [esi+0xDC], restores regs, jumps to V14_RESUME_VA. void v14_clipplane_cleanup_thunk(); } // extern "C"