Match LegoOmni::Destroy and related (#917)

* Match LegoOmni::Destroy and related

* Write COMPAT_MODE macro differently

* fix lint issue
This commit is contained in:
Christian Semmler
2024-05-14 08:13:27 -04:00
committed by GitHub
parent ccf33575db
commit 939c09139f
7 changed files with 60 additions and 8 deletions

View File

@@ -428,6 +428,25 @@ MxResult LegoPathController::Init()
return SUCCESS;
}
// FUNCTION: LEGO1 0x10046de0
// FUNCTION: BETA10 0x100b779e
MxResult LegoPathController::Reset()
{
if (g_ctrlBoundariesA == NULL || g_ctrlEdgesA == NULL) {
return FAILURE;
}
delete[] g_ctrlBoundariesA;
delete[] g_ctrlEdgesA;
delete[] g_ctrlBoundariesB;
delete[] g_ctrlEdgesB;
g_ctrlBoundariesA = NULL;
g_ctrlEdgesA = NULL;
g_ctrlBoundariesB = NULL;
g_ctrlEdgesB = NULL;
return SUCCESS;
}
// FUNCTION: LEGO1 0x10046e50
// FUNCTION: BETA10 0x100b781f
MxResult LegoPathController::Read(LegoStorage* p_storage)