-
Notifications
You must be signed in to change notification settings - Fork 3
/
FNTool.h
28 lines (23 loc) · 886 Bytes
/
FNTool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include <Windows.h>
#define RELATIVE(addr, size) ((uintptr_t)((UINT_PTR)(addr) + *(PINT)((UINT_PTR)(addr) + ((size) - sizeof(INT))) + (size)))
static const void* game_rbx_jmp;
class FNTool
{
public:
bool Initialize(uintptr_t GObjects, uintptr_t GetNameByIndex, uintptr_t FnFree);
uintptr_t FindSignature(const char* Signature);
DWORD FindOffset(const char* Class, const char* var);
VOID FindAndLogOffset(const char* Class, const char* var);
VOID FindAndLogClass(const char* Class);
VOID FindAndChangeOffset(const char* Class, const char* var, uintptr_t& offfset);
private:
uintptr_t UObjectArray = NULL;
uintptr_t GetNameByIndex = NULL;
uintptr_t FnFree = NULL;
DWORD ObjectsCount = 0;
void cFixName(char* Name);
void FreeObjName(uintptr_t Address);
char* fGetObjectName(uintptr_t Object);
char* fGetNameByIndex(int Index);
};