From 1ec94143946aa36ff4720e74bd923c51817023b2 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Fri, 20 Jun 2025 22:10:57 -0400 Subject: [PATCH] Temporarily disable FLC frames --- .../src/video/legoflctexturepresenter.cpp | 16 +++++++++------- .../legoomni/src/video/legophonemepresenter.cpp | 15 ++++++++------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/LEGO1/lego/legoomni/src/video/legoflctexturepresenter.cpp b/LEGO1/lego/legoomni/src/video/legoflctexturepresenter.cpp index 9aeabf74..c6fbfa20 100644 --- a/LEGO1/lego/legoomni/src/video/legoflctexturepresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoflctexturepresenter.cpp @@ -1,5 +1,6 @@ #include "legoflctexturepresenter.h" +#include "SDL3/SDL_log.h" #include "misc.h" #include "misc/legocontainer.h" #include "mxdsaction.h" @@ -50,13 +51,14 @@ void LegoFlcTexturePresenter::LoadFrame(MxStreamChunk* p_chunk) data += m_rectCount * sizeof(MxRect32); MxBool decodedColorMap; - DecodeFLCFrame( - &m_frameBitmap->GetBitmapInfo()->m_bmiHeader, - m_frameBitmap->GetImage(), - m_flcHeader, - (FLIC_FRAME*) data, - &decodedColorMap - ); + // TODO for 3DS: Temporarily disable FLC frames, as they were causing crashes + // DecodeFLCFrame( + // &m_frameBitmap->GetBitmapInfo()->m_bmiHeader, + // m_frameBitmap->GetImage(), + // m_flcHeader, + // (FLIC_FRAME*) data, + // &decodedColorMap + // ); } // FUNCTION: LEGO1 0x1005e100 diff --git a/LEGO1/lego/legoomni/src/video/legophonemepresenter.cpp b/LEGO1/lego/legoomni/src/video/legophonemepresenter.cpp index 353480fc..78f03b02 100644 --- a/LEGO1/lego/legoomni/src/video/legophonemepresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legophonemepresenter.cpp @@ -100,13 +100,14 @@ void LegoPhonemePresenter::LoadFrame(MxStreamChunk* p_chunk) data += m_rectCount * sizeof(MxRect32); MxBool decodedColorMap; - DecodeFLCFrame( - &m_frameBitmap->GetBitmapInfo()->m_bmiHeader, - m_frameBitmap->GetImage(), - m_flcHeader, - (FLIC_FRAME*) data, - &decodedColorMap - ); + // TODO for 3DS: Temporarily disable FLC frames, as they were causing crashes + // DecodeFLCFrame( + // &m_frameBitmap->GetBitmapInfo()->m_bmiHeader, + // m_frameBitmap->GetImage(), + // m_flcHeader, + // (FLIC_FRAME*) data, + // &decodedColorMap + // ); } // FUNCTION: LEGO1 0x1004e840