2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CARAMTOKEN
|
|
|
|
#define _CARAMTOKEN
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
class CARAMToken {
|
|
|
|
public:
|
2022-12-03 21:31:54 +00:00
|
|
|
enum EStatus {
|
|
|
|
kS_Zero,
|
|
|
|
kS_One,
|
|
|
|
};
|
|
|
|
|
|
|
|
CARAMToken();
|
|
|
|
CARAMToken(void* ptr, uint len);
|
|
|
|
CARAMToken(const CARAMToken& other);
|
|
|
|
~CARAMToken();
|
|
|
|
void PostConstruct(void* ptr, uint len, int unk);
|
|
|
|
CARAMToken& operator=(const CARAMToken& other);
|
|
|
|
void LoadToMRAM();
|
|
|
|
void LoadToARAM();
|
|
|
|
void RefreshStatus();
|
2022-04-10 00:17:06 +00:00
|
|
|
static void UpdateAllDMAs();
|
2022-12-03 21:31:54 +00:00
|
|
|
void InitiallyMoveToList();
|
|
|
|
void MoveToList(EStatus status);
|
|
|
|
void RemoveFromList();
|
|
|
|
void MakeInvalid();
|
|
|
|
|
|
|
|
void sub_803583d4();
|
|
|
|
void sub_80358388();
|
|
|
|
|
|
|
|
void* GetMRAMSafe();
|
|
|
|
private:
|
|
|
|
int x0_;
|
|
|
|
void* x4_;
|
|
|
|
void* x8_;
|
|
|
|
int xc_;
|
|
|
|
uint x10_;
|
|
|
|
int x14_;
|
|
|
|
int x18_;
|
|
|
|
bool x1c_24_ : 1;
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CARAMTOKEN
|