t8-mod/source/proxy-dll/component/gsc_custom.hpp
Antoine Willerval 50f6049a7e
Custom xassets loading (#28)
* add custom gsc/lua/raw file loading and gsc hooks

* add gsic file injection with detours/builtins/lazylinks

* add custom string tables, fix old func
2023-12-15 01:01:22 -08:00

29 lines
488 B
C++

#pragma once
#include "definitions/game.hpp"
namespace gsc_custom
{
enum gsic_field_type
{
GSIC_FIELD_DETOUR = 0
};
struct gsic_detour
{
uint32_t fixup_name{};
uint32_t replace_namespace{};
uint32_t replace_function{};
uint32_t fixup_offset{};
uint32_t fixup_size{};
uint64_t target_script{};
byte* fixup_function{};
};
struct gsic_info
{
bool sync{};
std::vector<gsic_detour> detours{};
};
void sync_gsic(game::scriptInstance_t inst, gsic_info& info);
}