resonance 1.0.1
Loading...
Searching...
No Matches
FadeUser Class Referenceabstract

Mix-in for an object that takes part in a screen fade. More...

#include <fadeuser.h>

Inheritance diagram for FadeUser:

Public Member Functions

virtual ~FadeUser ()
virtual void OnFadeOutDone ()=0
 Respond to a MetFade fade out having finished.
virtual void OnFadeInDone ()=0
 Respond to a MetFade fade in having finished.

Detailed Description

Mix-in for an object that takes part in a screen fade.

Its RTTI descriptor is at 0x0086f758. It is a leaf class with no base. The class declares no data member. The subobject is therefore the four-byte compiler-generated vptr at offset 0. MetMCFreqDelScreen fixes the width for a mix-in of this shape by placing MemcardUser at +140 and ListDataProvider at +144, and the same construction applies here.

Five classes derive from the class. MetExpansionPakScreen, MetLoadGameScreen, and MetSonyScreen place the subobject at +140, MetMemDetectStartup at +160, and MetRenderer at +92.

The four-entry vtable at 0x007ec070 runs GetTypeInfo, the destructor, then two entries that both store the __pure_virtual handler at 0x005381a8. Both declared virtuals are therefore pure and the original class is abstract.

MetFade is the caller of both slots. It runs slot 2 when a fade out finishes and slot 3 when a fade in finishes, and the two titles follow from that. Both signatures are recovered from MetRenderer's overrides at 0x003715e0 and 0x003715d8, each of which reads only a0 and returns nothing.

The destructor at 0x0021d760 restores the vptr and releases the object through the scalar release path at 0x004a9230 when its __in_chrg argument is odd, which is the whole of its body. Construction is inline, and every derived constructor in the image writes the vptr in place rather than calling out.

Constructor & Destructor Documentation

◆ ~FadeUser()

virtual FadeUser::~FadeUser ( )
virtual
Ghidra address:
NTSC-U/C: 0x0021d760
Ghidra address:
PAL: 0x002302b8

Member Function Documentation

◆ OnFadeOutDone()

virtual void FadeUser::OnFadeOutDone ( )
pure virtual

Respond to a MetFade fade out having finished.

Slot 2.

Ghidra address:
NTSC-U/C: 0x005381a8
Ghidra address:
PAL: 0x00577a68

Implemented in MetExpansionPakScreen, MetLoadGameScreen, MetMemDetectStartup, MetRenderer, and MetSonyScreen.

◆ OnFadeInDone()

virtual void FadeUser::OnFadeInDone ( )
pure virtual

Respond to a MetFade fade in having finished.

Slot 3.

Ghidra address:
NTSC-U/C: 0x005381a8
Ghidra address:
PAL: 0x00577a68

Implemented in MetExpansionPakScreen, MetLoadGameScreen, MetMemDetectStartup, MetRenderer, and MetSonyScreen.


The documentation for this class was generated from the following file: