resonance 1.0.1
Loading...
Searching...
No Matches
saveicon.h File Reference

Go to the source code of this file.

Functions

void LoadSaveIcon ()
 Load the memory-card save icon.

Variables

constexpr int kSaveIconBufferSize = 37000
 Bytes LoadSaveIcon() requests, which is the size of the buffer it fills.
unsigned char g_abSaveIcon [kSaveIconBufferSize]
 The icon mesh, as mc/freq1.icn stores it.
int g_nSaveIconLength
 Bytes LoadSaveIcon() transferred into g_abSaveIcon, and the length written to the card.

Function Documentation

◆ LoadSaveIcon()

void LoadSaveIcon ( )

Load the memory-card save icon.

The routine builds the path from the host prefix and mc/freq1.icn, opens it through the C library, reads kSaveIconBufferSize bytes into g_abSaveIcon, records the transferred count in g_nSaveIconLength, and closes the file. A path that fails to open skips the read, which is what makes the length zero on a disc with no icon.

SaveFileMCT writes g_abSaveIcon to the card as freq1.ico.

Ghidra address:
NTSC-U/C: 0x00177570
Ghidra address:
PAL: 0x0017a000

Variable Documentation

◆ kSaveIconBufferSize

int kSaveIconBufferSize = 37000
constexpr

Bytes LoadSaveIcon() requests, which is the size of the buffer it fills.

◆ g_abSaveIcon

unsigned char g_abSaveIcon[kSaveIconBufferSize]
extern

The icon mesh, as mc/freq1.icn stores it.

Ghidra address:
NTSC-U/C: 0x008889a8
Ghidra address:
PAL: 0x008cd0c8

◆ g_nSaveIconLength

int g_nSaveIconLength
extern

Bytes LoadSaveIcon() transferred into g_abSaveIcon, and the length written to the card.

Zero until LoadSaveIcon() has run.

Ghidra address:
NTSC-U/C: 0x0067bfd8
Ghidra address:
PAL: 0x006bcf40