mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-24 06:34:34 +00:00
SKSE-style external mod loader with zero game source modifications. - LegacyForge.Launcher: C# console app that injects runtime DLL into game process - LegacyForgeRuntime: C++ DLL with PDB symbol resolution, MinHook function hooking, and .NET CoreCLR hosting - LegacyForge.Core: C# mod discovery and lifecycle management - LegacyForge.API: Fabric-style mod API with namespaced string IDs, fluent property builders, and event system - ExampleMod: Sample mod demonstrating block/item registration
24 lines
463 B
C++
24 lines
463 B
C++
#pragma once
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <Windows.h>
|
|
#include <DbgHelp.h>
|
|
|
|
class SymbolResolver
|
|
{
|
|
public:
|
|
bool Initialize();
|
|
bool ResolveGameFunctions();
|
|
void Cleanup();
|
|
|
|
void* Resolve(const char* functionName);
|
|
|
|
void* pRunStaticCtors = nullptr;
|
|
void* pMinecraftTick = nullptr;
|
|
void* pMinecraftInit = nullptr;
|
|
void* pMinecraftDestroy = nullptr;
|
|
|
|
private:
|
|
HANDLE m_process = nullptr;
|
|
bool m_initialized = false;
|
|
};
|