cleanup: fix all improper uses of MxResult (#234)

* cleanup: fix all improper uses of MxResult
This commit is contained in:
Ramen2X
2023-10-22 13:38:25 -04:00
committed by GitHub
parent 7e907cfe3f
commit 5ab993bfda
6 changed files with 7 additions and 7 deletions

View File

@@ -25,5 +25,5 @@ MxResult Act2Brick::Tickle()
{ {
// TODO // TODO
return 0; return SUCCESS;
} }

View File

@@ -27,7 +27,7 @@ MxResult LegoAnimationManager::Tickle()
{ {
// TODO // TODO
return 0; return SUCCESS;
} }
// OFFSET: LEGO1 0x1005f130 STUB // OFFSET: LEGO1 0x1005f130 STUB

View File

@@ -16,5 +16,5 @@ LegoPathController::~LegoPathController()
MxResult LegoPathController::Tickle() MxResult LegoPathController::Tickle()
{ {
// TODO // TODO
return 0; return SUCCESS;
} }

View File

@@ -16,7 +16,7 @@ MxDiskStreamController::~MxDiskStreamController()
MxResult MxDiskStreamController::Tickle() MxResult MxDiskStreamController::Tickle()
{ {
// TODO // TODO
return 0; return SUCCESS;
} }
// OFFSET: LEGO1 0x100c7790 STUB // OFFSET: LEGO1 0x100c7790 STUB

View File

@@ -12,7 +12,7 @@ MxMediaPresenter::~MxMediaPresenter()
MxResult MxMediaPresenter::Tickle() MxResult MxMediaPresenter::Tickle()
{ {
// TODO // TODO
return 0; return SUCCESS;
} }
// OFFSET: LEGO1 0x100b54e0 // OFFSET: LEGO1 0x100b54e0

View File

@@ -379,7 +379,7 @@ void MxPalette::Detach()
MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries) MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries)
{ {
MxS32 i; MxS32 i;
MxResult status = 0; MxResult status = SUCCESS;
if ( this->m_palette ) if ( this->m_palette )
{ {
@@ -423,7 +423,7 @@ MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries)
this->m_entries[i].peFlags = 0x80; this->m_entries[i].peFlags = 0x80;
if ( this->m_palette->SetEntries(0, 0, 256, this->m_entries) ) if ( this->m_palette->SetEntries(0, 0, 256, this->m_entries) )
status = -1; status = FAILURE;
} }
return status; return status;