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

Mix-in for a screen that receives text from the front-end keyboard. More...

#include <metkbuser.h>

Inheritance diagram for MetKBUser:

Public Member Functions

virtual ~MetKBUser ()
virtual void OnKeyboardTextEntered (const HxStr &text)=0
 Receive the text the keyboard screen committed.

Detailed Description

Mix-in for a screen that receives text from the front-end keyboard.

Its RTTI descriptor is at 0x0086f598. 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. MetPersonaSaverScreen fixes the width by placing MemcardUser at +140 and MetKBUser at +144.

Four classes derive from the class, MetFreqMakerButtonsScreen and MetPersonaSaverScreen and MetSaveRemix at +144, and MetLoadNewFreqScreen at +164.

The three-entry vtable at 0x007f16a0 runs GetTypeInfo, the destructor, then one entry that stores the __pure_virtual handler at 0x005381a8. The one declared virtual is therefore pure and the original class is abstract. Its name is not recovered and its signature now is, so it is declared below.

The destructor at 0x0025dfb8 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.

Constructor & Destructor Documentation

◆ ~MetKBUser()

virtual MetKBUser::~MetKBUser ( )
virtual
Ghidra address:
NTSC-U/C: 0x0025dfb8
Ghidra address:
PAL: 0x00274208

Member Function Documentation

◆ OnKeyboardTextEntered()

virtual void MetKBUser::OnKeyboardTextEntered ( const HxStr & text)
pure virtual

Receive the text the keyboard screen committed.

Slot 2.

The name is not recovered and the title is inferred from MetKeyboardScreen::OnExitFinished(), the one caller. That caller passes the committed text. The one parameter is recovered from three of the overrides. The MetSaveRemix override at 0x0037a650 passes it to HxStr::Assign as the source of an assignment into its +0xb8. That assignment fixes it as a const HxStr & rather than an integer or an object pointer. The MetSaveRemixScreen override at 0x00381990 forwards the same register to a Rnd::Text through Rnd::Text::SetText(), and the MetRemixDelScreen override at 0x00344240 forwards it to the MetSaveRemix override unchanged. Three of the seven overrides in the image were read.

Parameters
textThe text the user entered.
Ghidra address:
NTSC-U/C: 0x005381a8
Ghidra address:
PAL: 0x00577a68

Implemented in MetFreqMakerButtonsScreen, MetLoadNewFreqScreen, MetPersonaSaverScreen, MetRemixDelScreen, MetSaveRemix, and MetSaveRemixScreen.


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