Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
m_Do_MemCard.h
Go to the documentation of this file.
1#ifndef M_DO_M_DO_MEMCARD_H
2#define M_DO_M_DO_MEMCARD_H
3
4#include "card.h"
6#include "global.h"
7
9public:
18
19 /* 8001672C */ mDoMemCd_Ctrl_c();
20 /* 80016730 */ void ThdInit();
21 /* 800167D0 */ void main();
22 /* 80016894 */ void update();
23 /* 800169B4 */ void load();
24 /* 80016A0C */ void restore();
25 /* 80016AB0 */ s32 LoadSync(void*, u32, u32);
26 /* 80016B58 */ void save(void*, u32, u32);
27 /* 80016BD4 */ void store();
28 /* 80016CE0 */ s32 SaveSync();
29 /* 80016D74 */ u32 getStatus(u32);
30 /* 80016E58 */ void command_format();
31 /* 80016EA8 */ void format();
32 /* 80016F2C */ s32 FormatSync();
33 /* 80016FB8 */ void attach();
34 /* 800170B8 */ void command_attach();
35 /* 80017110 */ void detach();
36 /* 80017148 */ s32 mount();
37 /* 80017274 */ s32 loadfile();
38 /* 800172D4 */ s32 checkspace();
39 /* 80017360 */ void setCardState(s32);
40
43 void clearProbeStat() { mProbeStat = 2; }
46 void setDataVersion(u32 version) { mDataVersion = version; }
54
55 /* 0x0000 */ u8 mData[0x1FBC];
56 /* 0x1FBC */ u8 mChannel;
57 /* 0x1FBD */ u8 mCopyToPos;
58 /* 0x1FBE */ u8 mProbeStat;
59 /* 0x1FC0 */ s32 mCardCommand;
60 /* 0x1FC4 */ s32 mCardState;
61 /* 0x1FC8 */ s32 field_0x1fc8;
62 /* 0x1FCC */ OSMutex mMutex;
63 /* 0x1FE4 */ OSCond mCond;
64 /* 0x1FEC */ u32 mNandState;
65 /* 0x1FF0 */ u64 mSerialNo;
66 /* 0x1FF8 */ u32 mDataVersion;
67}; // Size: 0x2000
68
70
71static int mDoMemCd_main(void*);
72
74
78
82
86
90
94
98
102
105}
106
107inline void mDoMemCd_Load() {
109}
110
114
118
119inline u32 mDoMemCd_LoadSync(void* buffer, u32 size, u32 index) {
120 return g_mDoMemCd_control.LoadSync(buffer, size, index);
121}
122
126
127inline void mDoMemCd_setDataVersion(u32 version) {
129}
130
134
138
142
143#endif /* M_DO_M_DO_MEMCARD_H */
s32 CARDGetSerialNo(s32 chan, u64 *serialNo)
Definition CARDNet.c:12
s32 CARDGetStatus(s32 chan, s32 fileNo, CARDStat *stat)
Definition CARDStat.c:67
s32 CARDSetStatus(s32 chan, s32 fileNo, CARDStat *stat)
Definition CARDStat.c:149
static OSTime buffer
Definition ai.c:202
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition m_Do_MemCard.h:8
void setCardStatus(s32 fileNo, CARDStat *stat)
Definition m_Do_MemCard.h:48
OSMutex mMutex
Definition m_Do_MemCard.h:62
s32 loadfile()
Definition m_Do_MemCard.cpp:429
void update()
Definition m_Do_MemCard.cpp:75
u8 getProbeStat()
Definition m_Do_MemCard.h:42
void load()
Definition m_Do_MemCard.cpp:102
void restore()
Definition m_Do_MemCard.cpp:112
void ThdInit()
Definition m_Do_MemCard.cpp:24
void main()
Definition m_Do_MemCard.cpp:42
bool isCardCommNone()
Definition m_Do_MemCard.h:41
u32 getDataVersion()
Definition m_Do_MemCard.h:45
s32 FormatSync()
Definition m_Do_MemCard.cpp:308
u8 mCopyToPos
Definition m_Do_MemCard.h:57
s32 LoadSync(void *, u32, u32)
Definition m_Do_MemCard.cpp:133
s32 mount()
Definition m_Do_MemCard.cpp:390
void format()
Definition m_Do_MemCard.cpp:291
void attach()
Definition m_Do_MemCard.cpp:331
CardCommand
Definition m_Do_MemCard.h:10
@ CARD_DETACH
Definition m_Do_MemCard.h:16
@ CARD_ATTACH
Definition m_Do_MemCard.h:15
@ CARD_NO_COMMAND
Definition m_Do_MemCard.h:11
@ CARD_FORMAT
Definition m_Do_MemCard.h:14
@ CARD_STORE
Definition m_Do_MemCard.h:13
@ CARD_RESTORE
Definition m_Do_MemCard.h:12
s32 field_0x1fc8
Definition m_Do_MemCard.h:61
void clearProbeStat()
Definition m_Do_MemCard.h:43
void store()
Definition m_Do_MemCard.cpp:167
mDoMemCd_Ctrl_c()
Definition m_Do_MemCard.cpp:14
u8 mProbeStat
Definition m_Do_MemCard.h:58
u64 mSerialNo
Definition m_Do_MemCard.h:65
void setDataVersion(u32 version)
Definition m_Do_MemCard.h:46
void getCardStatus(s32 fileNo, CARDStat *stat)
Definition m_Do_MemCard.h:47
void detach()
Definition m_Do_MemCard.cpp:379
s32 mCardState
Definition m_Do_MemCard.h:60
u8 mData[0x1FBC]
Definition m_Do_MemCard.h:55
void setSerialNo()
Definition m_Do_MemCard.h:49
s32 SaveSync()
Definition m_Do_MemCard.cpp:202
u8 mChannel
Definition m_Do_MemCard.h:56
u32 getStatus(u32)
Definition m_Do_MemCard.cpp:225
s32 checkspace()
Definition m_Do_MemCard.cpp:444
void save(void *, u32, u32)
Definition m_Do_MemCard.cpp:156
void command_format()
Definition m_Do_MemCard.cpp:282
void setCopyToPos(u8 param_0)
Definition m_Do_MemCard.h:44
s32 mCardCommand
Definition m_Do_MemCard.h:59
void setCardState(s32)
Definition m_Do_MemCard.cpp:466
u32 mNandState
Definition m_Do_MemCard.h:64
OSCond mCond
Definition m_Do_MemCard.h:63
u32 mDataVersion
Definition m_Do_MemCard.h:66
void command_attach()
Definition m_Do_MemCard.cpp:369
u32 mDoMemCd_LoadSync(void *buffer, u32 size, u32 index)
Definition m_Do_MemCard.h:119
void mDoMemCd_Format()
Definition m_Do_MemCard.h:95
void mDoMemCd_ThdInit()
Definition m_Do_MemCard.h:79
void mDoMemCd_setSerialNo()
Definition m_Do_MemCard.h:131
static int mDoMemCd_main(void *)
void mDoMemCd_clearProbeStat()
Definition m_Do_MemCard.h:87
s32 mDoMemCd_FormatSync()
Definition m_Do_MemCard.h:99
mDoMemCd_Ctrl_c g_mDoMemCd_control
Definition m_Do_MemCard.cpp:492
u8 mDoMemCd_getProbeStat()
Definition m_Do_MemCard.h:83
s32 mDoMemCd_SaveSync()
Definition m_Do_MemCard.h:103
void mDoMemCd_getCardStatus(s32 fileNo, CARDStat *stat)
Definition m_Do_MemCard.h:135
STATIC_ASSERT(sizeof(mDoMemCd_Ctrl_c)==8192)
u32 mDoMemCd_getStatus(u8 param_0)
Definition m_Do_MemCard.h:115
void mDoMemCd_setCopyToPos(u8 param_0)
Definition m_Do_MemCard.h:111
void mDoMemCd_save(void *i_data, u32 param_1, u32 param_2)
Definition m_Do_MemCard.h:91
void mDoMemCd_setCardStatus(s32 fileNo, CARDStat *stat)
Definition m_Do_MemCard.h:139
bool mDoMemCd_isCardCommNone()
Definition m_Do_MemCard.h:75
void mDoMemCd_setDataVersion(u32 version)
Definition m_Do_MemCard.h:127
u32 mDoMemCd_getDataVersion()
Definition m_Do_MemCard.h:123
void mDoMemCd_Load()
Definition m_Do_MemCard.h:107
Definition card.h:101
Definition OSMutex.h:17
Definition OSMutex.h:10
unsigned long u32
Definition types.h:10
unsigned long long u64
Definition types.h:11
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8