Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement EclManager::Unload #309

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading