r5sdk/r5dev/studiorender/studiorendercontext.h

27 lines
1.3 KiB
C
Raw Permalink Normal View History

2022-02-19 16:42:40 +01:00
#pragma once
//-------------------------------------------------------------------------
// CSTUDIORENDERCONTEXT
//-------------------------------------------------------------------------
inline void (*CStudioRenderContext__LoadModel)(__int64 thisptr, studiohdr_t* pStudioHdr, void* pVtxBuffer, studiohwdata_t* pStudioHWData);
inline __int64 (*CStudioRenderContext__LoadMaterials)(__int64 thisptr, studiohdr_t* pStudioHdr, void* a3, uint32_t* pFlags);
2022-02-19 16:42:40 +01:00
///////////////////////////////////////////////////////////////////////////////
class VStudioRenderContext : public IDetour
2022-02-19 16:42:40 +01:00
{
virtual void GetAdr(void) const
2022-02-19 16:42:40 +01:00
{
LogFunAdr("CStudioRenderContext::LoadModel", CStudioRenderContext__LoadModel);
LogFunAdr("CStudioRenderContext::LoadMaterials", CStudioRenderContext__LoadMaterials);
2022-02-19 16:42:40 +01:00
}
virtual void GetFun(void) const
{
g_GameDll.FindPatternSIMD("4C 89 44 24 ?? 48 89 54 24 ?? 48 89 4C 24 ?? 53 55 56 57 48 83 EC 78").GetPtr(CStudioRenderContext__LoadModel);
g_GameDll.FindPatternSIMD("48 8B C4 4C 89 40 18 55 56 41 55").GetPtr(CStudioRenderContext__LoadMaterials);
}
virtual void GetVar(void) const { }
virtual void GetCon(void) const { }
virtual void Detour(const bool bAttach) const { }
2022-02-19 16:42:40 +01:00
};
///////////////////////////////////////////////////////////////////////////////