resonance 1.0.1
Loading...
Searching...
No Matches
memcardconnectstate.h File Reference
#include "os/hxstr.h"
Include dependency graph for memcardconnectstate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Variables

constexpr int kMemcardSlotCount = 10
 Entries in the parallel slot tables, two ports of four multi-tap slots plus the two bare slots.
const int g_anMemcardSlotPortSlot [kMemcardSlotCount]
 Packed port and slot for each enumerable slot.
const char *const g_apszMemcardSlotNames [kMemcardSlotCount]
 Display text for each enumerable slot, parallel to g_anMemcardSlotPortSlot.
constexpr int kMemcardPort1 = 0
 Controller port the first memory-card slot sits in.
constexpr int kMemcardPort2 = 1
 Controller port the second memory-card slot sits in.
constexpr int kMemcardMultitapConnected = 1
 The value sceMtapGetConnection() reports for a port with a multi-tap.

Variable Documentation

◆ kMemcardSlotCount

int kMemcardSlotCount = 10
constexpr

Entries in the parallel slot tables, two ports of four multi-tap slots plus the two bare slots.

◆ g_anMemcardSlotPortSlot

const int g_anMemcardSlotPortSlot[kMemcardSlotCount]
extern

Packed port and slot for each enumerable slot.

Index 0 and 1 are port 1 and port 2 with no multi-tap. Index 2 to 5 are the four multi-tap slots of port 1, and index 6 to 9 those of port 2. GetAllConnectStatesMCT uses index 0 to 5 and never index 6 to 9, so the last four entries are unreferenced.

Ghidra address:
NTSC-U/C: 0x007db440
Ghidra address:
PAL: 0x0081f330

◆ g_apszMemcardSlotNames

const char* const g_apszMemcardSlotNames[kMemcardSlotCount]
extern

Display text for each enumerable slot, parallel to g_anMemcardSlotPortSlot.

1, 2, then 1-A to 1-D and 2-A to 2-D. The last four are reached by no code path.

Ghidra address:
NTSC-U/C: 0x0067bfe0
Ghidra address:
PAL: 0x006bcf48

◆ kMemcardPort1

int kMemcardPort1 = 0
constexpr

Controller port the first memory-card slot sits in.

◆ kMemcardPort2

int kMemcardPort2 = 1
constexpr

Controller port the second memory-card slot sits in.

◆ kMemcardMultitapConnected

int kMemcardMultitapConnected = 1
constexpr

The value sceMtapGetConnection() reports for a port with a multi-tap.