From a968f475e8739655b5ed3af87fbecf646bfcbea9 Mon Sep 17 00:00:00 2001 From: KeybadeBlox Date: Sat, 13 Dec 2025 08:54:22 -0500 Subject: [PATCH] Add g_game extern declaration to Core.hpp Honestly not sure why it's not defined in there, but it's not up to me. --- src/Core.hpp | 4 ++-- src/Jet2.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Core.hpp b/src/Core.hpp index 35f5562..830913b 100644 --- a/src/Core.hpp +++ b/src/Core.hpp @@ -87,7 +87,7 @@ public: // Top-level globally-accessible "god object" that runs the main loop and // provides global access to most other objects and many variables -class Game { +extern class Game { char unknown0x4[4]; unsigned unknown0x8; unsigned * unknown0xC; @@ -176,7 +176,7 @@ public: virtual ~Game(); // TODO: methods -}; +} * g_game; #endif diff --git a/src/Jet2.cpp b/src/Jet2.cpp index d33805e..38e3e1c 100644 --- a/src/Jet2.cpp +++ b/src/Jet2.cpp @@ -2,6 +2,8 @@ // Address: 0x0022FCE0 +// Core.cpp really seems like a more natural place to put this, but it doesn't +// appear to be with Core.cpp's other data in .data Game * g_game;