Add hook for modloader

This commit is contained in:
Daniel McGuire 2026-03-02 02:34:42 -06:00
parent e15bd26917
commit c7d8f46973
No known key found for this signature in database
GPG key ID: A1261242D96341BF
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

View file

@ -60,10 +60,8 @@ public:
// void crash(CrashReport crash);
// public abstract void onCrash(CrashReport crash);
private:
static Minecraft *m_instance;
public:
MultiPlayerGameMode *gameMode;
private: