diff --git a/config/implemented.csv b/config/implemented.csv index a55b6281..fa9a075a 100644 --- a/config/implemented.csv +++ b/config/implemented.csv @@ -89,6 +89,7 @@ th06::Controller::EnumGameControllersCb th06::EclManager::CallEclSub th06::EclManager::Load th06::EclManager::RunEcl +th06::EclManager::Unload th06::Ending::Ending th06::Ending::RegisterChain th06::Ending::AddedCallback diff --git a/config/stubbed.csv b/config/stubbed.csv index b559c470..c9a473f6 100644 --- a/config/stubbed.csv +++ b/config/stubbed.csv @@ -1,4 +1,3 @@ -th06::EclManager::Unload th06::AnmManager::DrawEndingRect th06::MidiOutput::OnTimerElapsed th06::MidiOutput::ParseFile diff --git a/src/EclManager.cpp b/src/EclManager.cpp index 2b1acfed..52103f57 100644 --- a/src/EclManager.cpp +++ b/src/EclManager.cpp @@ -1021,4 +1021,14 @@ ZunResult EclManager::RunEcl(Enemy *enemy) } } } + +void EclManager::Unload() +{ + if (eclFile != NULL) + { + free(eclFile); + } + eclFile = NULL; + return; +} }; // namespace th06