Skip to content

Commit

Permalink
Merge pull request #309 from sere3925sere/EclManager-Unload
Browse files Browse the repository at this point in the history
Implement EclManager::Unload
  • Loading branch information
roblabla authored Nov 14, 2024
2 parents 50d9599 + 94ceb89 commit 8819a07
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/implemented.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion config/stubbed.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
th06::EclManager::Unload
th06::AnmManager::DrawEndingRect
th06::MidiOutput::OnTimerElapsed
th06::MidiOutput::ParseFile
Expand Down
10 changes: 10 additions & 0 deletions src/EclManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,4 +1021,14 @@ ZunResult EclManager::RunEcl(Enemy *enemy)
}
}
}

void EclManager::Unload()
{
if (eclFile != NULL)
{
free(eclFile);
}
eclFile = NULL;
return;
}
}; // namespace th06

0 comments on commit 8819a07

Please sign in to comment.