Files
wii-ipl/include/scene/iplFaderSceneBase.h
devin-ai-integration[bot] 3aa9daf94a decomp: emission gates for iplSDChannelTitle + MemoryCardManager decodes (#972)
IPL_SD_CHANNEL_TITLE_CPP gates move inline members to declarations so the
TU emits non-inlined calls like retail (same dedup-loss pattern as
#834's vtable restoration): iplInterporation::get, math::VEC3 ctor,
FaderSceneBase::initCalcNormal/calcCommonAfter, SceneBase::isReady/
isResetProcessDone/getParent/getChild/getNext/getPrev, NANDTask::
isFinished/checkData, Graphics::setOrthoTrans/setOrthoScale,
ut::Rect/RuntimeTypeInfo.

Verified vs main: iplSDChannelTitle 68/69 fns byte-exact (152B tail
residual in iplSDChannelTitle_flushSaveBeforeExit), iplMemoryCardManager
18/26. Units stay NonMatching; documented walls in revisit.attempts.md.

Co-authored-by: devin <devin@cognition.ai>
Co-authored-by: coah80 <usernamecole7@gmail.com>
2026-10-02 17:22:10 -05:00

74 lines
1.8 KiB
C++

#ifndef BASE_SCENE_FADER_H
#define BASE_SCENE_FADER_H
#include "scene/iplSceneBase.h"
#define FADER_SCENE_CLASS(x) class x : public scene::FaderSceneBase
namespace ipl {
namespace scene {
enum FaderSceneCommand {
/* Continue the current scene `calc` function */
FADER_SCN_CONTINUE = 0,
/* Onto the next scene `calc` function */
FADER_SCN_NEXT,
};
SCENE_CLASS(FaderSceneBase) {
public:
enum {
STT_FADE_IN = 0,
STT_INIT_NORMAL,
STT_NORMAL,
STT_INIT_FADE_OUT,
STT_FADE_OUT,
STT_DONE,
};
FaderSceneBase(EGG::Heap * heap);
virtual ~FaderSceneBase() {
}
virtual void calc();
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual void initCalcNormal();
#else
virtual void initCalcNormal() {
} // 0x4C
#endif
virtual void initCalcFadeout() {
} // 0x50
virtual void calcCommon() {
} // 0x54
virtual FaderSceneCommand calcFadein() {
return FADER_SCN_NEXT;
} // 0x58
virtual FaderSceneCommand calcNormal() {
return FADER_SCN_NEXT;
} // 0x5C
virtual FaderSceneCommand calcFadeout() {
return FADER_SCN_NEXT;
} // 0x60
#ifdef IPL_SD_CHANNEL_TITLE_CPP
virtual void calcCommonAfter();
#else
virtual void calcCommonAfter() {
} // 0x64
#endif
int getSceneFadeState() {
return mScnFadeState;
}
protected:
int mScnFadeState; // 0x54
};
} // namespace scene
} // namespace ipl
#endif // BASE_SCENE_FADER_H