Added IPC and lua definitions

This commit is contained in:
Anonymous275
2022-01-27 02:43:35 +02:00
parent bea720d0b7
commit 6c11de2708
8 changed files with 181 additions and 17 deletions

View File

@@ -4,9 +4,27 @@
///
#pragma once
#include "Memory/Detours.h"
#include "Definitions.h"
#include <cstdint>
#include <memory>
class BeamNG {
public:
static void EntryPoint();
private:
static std::unique_ptr<Detours> TickCountDetour;
static std::unique_ptr<Detours> OpenJITDetour;
static int lua_open_jit_D(lua_State* State);
static uint32_t GetTickCount_D();
static uint64_t GameBaseAddr;
static uint64_t DllBaseAddr;
static def::GetTickCount GetTickCount;
static def::lua_open_jit lua_open_jit;
static def::lua_push_fstring lua_push_fstring;
static def::lua_get_field lua_get_field;
static def::lua_p_call lua_p_call;
static const char* GameModule;
static const char* DllModule;
static lua_State* GEState;
};