Skip to content

Commit

Permalink
Adapt MxRegion.h
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles committed Feb 22, 2025
1 parent ea5a722 commit 20538fa
Show file tree
Hide file tree
Showing 14 changed files with 913 additions and 904 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ function(add_lego_libraries NAME)
LEGO1/omni/src/audio/mxloopingmidipresenter.cpp
LEGO1/omni/src/event/mxeventpresenter.cpp
LEGO1/omni/src/stream/mxstreamchunk.cpp
LEGO1/omni/src/video/mxregioncursor.cpp
LEGO1/omni/src/video/mxregion.cpp
LEGO1/omni/src/video/mxsmk.cpp
LEGO1/omni/src/stream/mxramstreamcontroller.cpp
Expand Down
2 changes: 1 addition & 1 deletion LEGO1/lego/legoomni/src/common/mxcontrolpresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ MxBool MxControlPresenter::FUN_10044480(LegoControlManagerNotificationParam* p_p
void MxControlPresenter::VTable0x6c(MxS16 p_unk0x4e)
{
if (p_unk0x4e == -1) {
if ((MxS16) ((MxDSMultiAction*) m_action)->GetActionList()->GetCount() - m_unk0x4e == 1) {
if ((MxS16) ((MxDSMultiAction*) m_action)->GetActionList()->GetNumElements() - m_unk0x4e == 1) {
m_unk0x4e = 0;
}
else {
Expand Down
2 changes: 1 addition & 1 deletion LEGO1/lego/legoomni/src/control/legocontrolmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void LegoControlManager::Unregister(MxCore* p_listener)
// FUNCTION: LEGO1 0x10029210
MxBool LegoControlManager::FUN_10029210(LegoEventNotificationParam& p_param, MxPresenter* p_presenter)
{
if (m_presenterList != NULL && m_presenterList->GetCount() != 0) {
if (m_presenterList != NULL && m_presenterList->GetNumElements() != 0) {
m_unk0x14 = p_presenter;

if (p_param.GetNotification() == c_notificationButtonUp ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void LegoLocomotionAnimPresenter::StartingTickle()
m_subscriber->FreeDataChunk(chunk);
}

if (m_roiMapList->GetCount() != 0) {
if (m_roiMapList->GetNumElements() != 0) {
ProgressTickleState(e_streaming);
}
}
Expand Down
2 changes: 1 addition & 1 deletion LEGO1/lego/legoomni/src/video/legopartpresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void LegoPartPresenter::Store()
ViewLODList* lodList = GetViewLODListManager()->Lookup(part->GetName()->GetData());

if (lodList == NULL) {
lodList = GetViewLODListManager()->Create(part->GetName()->GetData(), part->GetList()->GetCount());
lodList = GetViewLODListManager()->Create(part->GetName()->GetData(), part->GetList()->GetNumElements());

LegoLODListCursor lodCursor(part->GetList());
LegoLOD* lod;
Expand Down
2 changes: 1 addition & 1 deletion LEGO1/omni/include/mxlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MxList : protected MxCollection<T> {
void Prepend(T p_obj) { InsertEntry(p_obj, NULL, this->m_first); }
void DeleteAll();
void Empty();
MxU32 GetCount() { return this->m_count; }
MxU32 GetNumElements() { return this->m_count; }

friend class MxListCursor<T>;
using MxCollection<T>::SetDestroy;
Expand Down
Loading

0 comments on commit 20538fa

Please sign in to comment.