From 5ab993bfda54c4186602311335354abf77435ae1 Mon Sep 17 00:00:00 2001 From: Ramen2X <64166386+Ramen2X@users.noreply.github.com> Date: Sun, 22 Oct 2023 13:38:25 -0400 Subject: [PATCH] cleanup: fix all improper uses of MxResult (#234) * cleanup: fix all improper uses of MxResult --- LEGO1/act2brick.cpp | 2 +- LEGO1/legoanimationmanager.cpp | 2 +- LEGO1/legopathcontroller.cpp | 2 +- LEGO1/mxdiskstreamcontroller.cpp | 2 +- LEGO1/mxmediapresenter.cpp | 2 +- LEGO1/mxpalette.cpp | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LEGO1/act2brick.cpp b/LEGO1/act2brick.cpp index dde79d0b..1ec4f139 100644 --- a/LEGO1/act2brick.cpp +++ b/LEGO1/act2brick.cpp @@ -25,5 +25,5 @@ MxResult Act2Brick::Tickle() { // TODO - return 0; + return SUCCESS; } diff --git a/LEGO1/legoanimationmanager.cpp b/LEGO1/legoanimationmanager.cpp index 20e0a0e3..bf182ef5 100644 --- a/LEGO1/legoanimationmanager.cpp +++ b/LEGO1/legoanimationmanager.cpp @@ -27,7 +27,7 @@ MxResult LegoAnimationManager::Tickle() { // TODO - return 0; + return SUCCESS; } // OFFSET: LEGO1 0x1005f130 STUB diff --git a/LEGO1/legopathcontroller.cpp b/LEGO1/legopathcontroller.cpp index f8b64109..94a6aa1d 100644 --- a/LEGO1/legopathcontroller.cpp +++ b/LEGO1/legopathcontroller.cpp @@ -16,5 +16,5 @@ LegoPathController::~LegoPathController() MxResult LegoPathController::Tickle() { // TODO - return 0; + return SUCCESS; } diff --git a/LEGO1/mxdiskstreamcontroller.cpp b/LEGO1/mxdiskstreamcontroller.cpp index 0c74c3a7..0c1afedf 100644 --- a/LEGO1/mxdiskstreamcontroller.cpp +++ b/LEGO1/mxdiskstreamcontroller.cpp @@ -16,7 +16,7 @@ MxDiskStreamController::~MxDiskStreamController() MxResult MxDiskStreamController::Tickle() { // TODO - return 0; + return SUCCESS; } // OFFSET: LEGO1 0x100c7790 STUB diff --git a/LEGO1/mxmediapresenter.cpp b/LEGO1/mxmediapresenter.cpp index 2fb6b57c..3f31bf96 100644 --- a/LEGO1/mxmediapresenter.cpp +++ b/LEGO1/mxmediapresenter.cpp @@ -12,7 +12,7 @@ MxMediaPresenter::~MxMediaPresenter() MxResult MxMediaPresenter::Tickle() { // TODO - return 0; + return SUCCESS; } // OFFSET: LEGO1 0x100b54e0 diff --git a/LEGO1/mxpalette.cpp b/LEGO1/mxpalette.cpp index cdd1597f..b11a1209 100644 --- a/LEGO1/mxpalette.cpp +++ b/LEGO1/mxpalette.cpp @@ -379,7 +379,7 @@ void MxPalette::Detach() MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries) { MxS32 i; - MxResult status = 0; + MxResult status = SUCCESS; if ( this->m_palette ) { @@ -423,7 +423,7 @@ MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries) this->m_entries[i].peFlags = 0x80; if ( this->m_palette->SetEntries(0, 0, 256, this->m_entries) ) - status = -1; + status = FAILURE; } return status;