Implement LegoROI::Read and geom library (#627)

* Implement LegoROI::Read and geom library

* Match

* Match

* Fixes

* Fix
This commit is contained in:
Christian Semmler
2024-03-05 12:38:53 -05:00
committed by GitHub
parent ec1fcce08c
commit f6e44b1c1b
12 changed files with 451 additions and 28 deletions

View File

@@ -116,7 +116,7 @@ LegoGameState::LegoGameState()
// FUNCTION: LEGO1 0x10039720
LegoGameState::~LegoGameState()
{
LegoROI::SetSomeHandlerFunction(NULL);
LegoROI::FUN_100a9d30(NULL);
if (m_stateCount) {
for (MxS16 i = 0; i < m_stateCount; i++) {
@@ -965,11 +965,11 @@ void LegoGameState::SetColors()
// FUNCTION: LEGO1 0x1003bac0
void LegoGameState::SetROIHandlerFunction()
{
LegoROI::SetSomeHandlerFunction(&ROIHandlerFunction);
LegoROI::FUN_100a9d30(&ROIHandlerFunction);
}
// FUNCTION: LEGO1 0x1003bad0
MxBool ROIHandlerFunction(char* p_input, char* p_output, MxU32 p_copyLen)
MxBool ROIHandlerFunction(const char* p_input, char* p_output, MxU32 p_copyLen)
{
if (p_output != NULL && p_copyLen != 0 &&
(strnicmp(p_input, "INDIR-F-", strlen("INDIR-F-")) == 0 ||