2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-09 16:19:05 +00:00

CGBASupport: Add Shutdown function

This commit is contained in:
Luke Street 2020-10-21 01:51:07 -04:00
parent 9da5ddff36
commit ddf17bd8b7
3 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,10 @@ void CGBASupport::Initialize() {
g_JbusListener.start(); g_JbusListener.start();
} }
void CGBASupport::Shutdown() {
g_JbusListener.stop();
}
void CGBASupport::GlobalPoll() { void CGBASupport::GlobalPoll() {
if (g_JbusEndpoint && !g_JbusEndpoint->connected()) if (g_JbusEndpoint && !g_JbusEndpoint->connected())
g_JbusEndpoint.reset(); g_JbusEndpoint.reset();

View File

@ -36,6 +36,7 @@ private:
public: public:
static void Initialize(); static void Initialize();
static void Shutdown();
static void GlobalPoll(); static void GlobalPoll();
CGBASupport(); CGBASupport();

View File

@ -926,6 +926,7 @@ void CMain::ShutdownSubsystems() {
CAnimData::FreeCache(); CAnimData::FreeCache();
CMemoryCardSys::Shutdown(); CMemoryCardSys::Shutdown();
CMappableObject::Shutdown(); CMappableObject::Shutdown();
CGBASupport::Shutdown();
} }
void CMain::Shutdown() { void CMain::Shutdown() {