resonance 1.0.1
Loading...
Searching...
No Matches
MemcardConnectState Struct Reference

What one card slot reports about itself, and the memory-card location the front end stores. More...

#include <memcardconnectstate.h>

Collaboration diagram for MemcardConnectState:

Public Member Functions

 MemcardConnectState ()
 Start with no location and an empty name.

Public Attributes

int mPortSlot
HxStr mSlotName
int mFree
int mType
int mFormatted

Detailed Description

What one card slot reports about itself, and the memory-card location the front end stores.

A plain record of 0x18 bytes with no RTTI. GetConnectStateMCT stores one inline and passes it by value to MemcardUser::OnConnectState(). The front end keeps the same record as its card location. GlobalSettings::mCardSlots is a vector of them, MetSaveRemix::OnConnectState() at 0x00372c10 assigns a reported state into its first entry, and NextCardSlot() and MetRemixManager::ListRemixes() take them. The class title is inferred from GetConnectStateMCT, and no string in the image identifies it.

mPortSlot combines the port in its high byte with the multitap slot in its low byte, which NextCardSlot() establishes: 1 and 1-A are 0, 1-B is 1, and 2 is 0x100.

Every member is filled by GetConnectStateMCT::OnCheckInfo() at 0x00177fb0 from one CheckInfoOp.

Constructor & Destructor Documentation

◆ MemcardConnectState()

MemcardConnectState::MemcardConnectState ( )
inline

Start with no location and an empty name.

Inline. The GetConnectStateMCT constructor, NextCardSlot(), and the screens that hold one expand it in place.

Member Data Documentation

◆ mPortSlot

int MemcardConnectState::mPortSlot

The packed port and slot the state describes, or -1. +0x00

◆ mSlotName

HxStr MemcardConnectState::mSlotName

Display text for the slot, from the table at 0x0067bfe0. +0x04

◆ mFree

int MemcardConnectState::mFree

Free clusters, from CheckInfoOp::mFree. -1 by default. +0x0c

◆ mType

int MemcardConnectState::mType

The sceMcType* value, from CheckInfoOp::mType. +0x10

◆ mFormatted

int MemcardConnectState::mFormatted

Non-zero when CheckInfoOp::mFormatted was exactly 1. +0x14


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