-
Автор темы
- #1
Does anyone have LoadFromBuffer cuz my is crashing:
Maybe its chams generation LoadFromBuffer (keyValues, matname, matdata);
Maybe its chams generation LoadFromBuffer (keyValues, matname, matdata);
Код:
void CChams :: LoadFromBuffer (SDK :: KeyValues * vk_, std :: string name_, std :: string buffer_)
{
static auto address = UTILS :: FindSignature ("client_panorama.dll", "55 8B EC 83 E4 F8 83 EC 34 53 8B 5D 0C 89 4C 24 04");
using Fn = void (__ thiscall *) (
void * thisptr, const char * resourceName,
const char * pBuffer, void * pFileSystem,
const char * pPathID, void * pfnEvaluateSymbolProc);
reinterpret_cast <Fn> (address) (
vk_, name_.c_str (), buffer_.c_str (), nullptr, nullptr, nullptr);
}