2024-09-06 20:14:55 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-09-14 17:07:03 +00:00
|
|
|
#ifndef MEMCARD_H
|
|
|
|
#define MEMCARD_H
|
|
|
|
|
|
|
|
// save manager
|
|
|
|
// port: 0 or 1, it is the physical port where you plug the memory card.
|
|
|
|
// port_s: 0-3, valid only in the context of multi tap, unused in this game.
|
|
|
|
// channel: the numerical combination of port and port_s
|
|
|
|
// block: 0-14, a memory card can store up to 15 blocks
|
|
|
|
|
2024-08-08 22:06:26 +00:00
|
|
|
#include <game.h>
|
2023-09-14 17:07:03 +00:00
|
|
|
#include <psxsdk/kernel.h>
|
|
|
|
#include <psxsdk/libapi.h>
|
|
|
|
|
|
|
|
extern MemcardInfo g_MemcardInfo[2];
|
|
|
|
extern s32 g_MemcardBlockRead;
|
2023-12-12 07:12:13 +00:00
|
|
|
extern s32 g_MemcardPortMask[];
|
|
|
|
extern u16 g_saveIconPal0[0x10][0x10];
|
|
|
|
extern u8* g_saveIconTexture[0x10];
|
2023-09-14 17:07:03 +00:00
|
|
|
|
|
|
|
#endif
|