Начинающий
-
Автор темы
- #1
C++:
static const char* ReadStringMemoryPtr(uint64_t dwAddress)
{
if (uint64_t v0 = Read<uint64_t>(dwAddress))
{
char buffer[1024];
ReadMemory(reinterpret_cast<PVOID>(v0), &buffer, sizeof(buffer));
return buffer;
}
else
return "NULL";
}
class IGameFramework
{
public:
const char* GetLevelName()
{
auto a1 = Read<const char*>((uintptr_t)this + 0x4D8);
auto a2 = Read<const char*>((uintptr_t)a1 + 0x40);
auto a3 = a2 + 8 + 8;
return ReadStringMemoryPtr((DWORD64)a3);
}
};