Files
LegacyWeaveLoader/LegacyForgeRuntime/src/SymbolResolver.h
Jacobwasbeast de22a24100 Initial commit: LegacyForge mod loader for Minecraft Legacy Edition
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
2026-03-06 15:11:53 -06:00

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;
};