Add hook for modloader (#117)

This commit is contained in:
Daniel McGuire
2026-03-02 03:12:49 -06:00
committed by GitHub
parent 7074f35e4b
commit 7bee4770df
2 changed files with 5 additions and 2 deletions

View File

@@ -105,6 +105,11 @@ int QuickSelectBoxWidth[3]=
};
#endif
extern "C" __declspec(dllexport) Minecraft* GetGameInstance()
{
return Minecraft::m_instance;
}
Minecraft::Minecraft(Component *mouseComponent, Canvas *parent, MinecraftApplet *minecraftApplet, int width, int height, bool fullscreen)
{
// 4J - added this block of initialisers