2022-10-09 01:13:17 -04:00
|
|
|
#ifndef _CMEMORYCARD
|
|
|
|
|
#define _CMEMORYCARD
|
2022-09-13 00:26:54 -04:00
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
2022-10-02 13:13:35 +03:00
|
|
|
#include "Kyoto/CObjectReference.hpp"
|
2022-10-04 16:29:05 +03:00
|
|
|
#include "MetroidPrime/TGameTypes.hpp"
|
2022-11-03 16:21:47 +02:00
|
|
|
#include "MetroidPrime/Player/CWorldSaveGameInfo.hpp"
|
2022-10-02 13:13:35 +03:00
|
|
|
|
2022-09-13 00:26:54 -04:00
|
|
|
class CMemoryCard {
|
2022-10-01 02:19:09 -04:00
|
|
|
public:
|
|
|
|
|
~CMemoryCard();
|
2022-09-13 00:26:54 -04:00
|
|
|
// TODO
|
2022-10-02 13:13:35 +03:00
|
|
|
|
2022-10-09 01:37:23 -04:00
|
|
|
rstl::pair< CAssetId, TAreaId > GetAreaAndWorldIdForSaveId(int saveId) const;
|
2022-10-04 16:29:05 +03:00
|
|
|
|
|
|
|
|
typedef rstl::pair< CAssetId, CWorldSaveGameInfo::EScanCategory > ScanState;
|
|
|
|
|
const rstl::vector< ScanState >& GetScanStates() const { return x20_scanStates; }
|
|
|
|
|
|
|
|
|
|
private:
|
2022-10-09 01:37:23 -04:00
|
|
|
uchar x0_pad[0x20];
|
2022-10-04 16:29:05 +03:00
|
|
|
rstl::vector< ScanState > x20_scanStates;
|
2022-09-13 00:26:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern CMemoryCard* gpMemoryCard;
|
|
|
|
|
|
2022-10-09 01:13:17 -04:00
|
|
|
#endif // _CMEMORYCARD
|