Go to the source code of this file.
◆ 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
◆ kSaveIconBufferSize
| int kSaveIconBufferSize = 37000 |
|
constexpr |
Bytes LoadSaveIcon() requests, which is the size of the buffer it fills.
◆ g_abSaveIcon
The icon mesh, as mc/freq1.icn stores it.
- Ghidra address:
- NTSC-U/C: 0x008889a8
- Ghidra address:
- PAL: 0x008cd0c8
◆ g_nSaveIconLength
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