2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-04 06:55:34 +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();
}
void CGBASupport::Shutdown() {
g_JbusListener.stop();
}
void CGBASupport::GlobalPoll() {
if (g_JbusEndpoint && !g_JbusEndpoint->connected())
g_JbusEndpoint.reset();

View File

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

View File

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