Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_save.h
Go to the documentation of this file.
1#ifndef D_SAVE_D_SAVE_H
2#define D_SAVE_D_SAVE_H
3
4#include "string.h"
6#include "dolphin/os/OSTime.h"
7#include "global.h"
8
9#define DEFAULT_SELECT_ITEM_INDEX 0
10#define MAX_SELECT_ITEM 4
11#define SELECT_ITEM_NUM 2
12#define MAX_EQUIPMENT 6
13#define MAX_EVENTS 256
14#define MAX_ITEM_SLOTS 24
15#define LIGHT_DROP_STAGE 4
16#define LETTER_INFO_BIT 64
17#define MAX_INSECT_NUM 24
18#define MAX_VISIBLE_HEARTPIECES 4
19#define MAX_POH_NUM 100
20#define BOMB_BAG_MAX 3
21#define BOTTLE_MAX 4
22#define TBOX_MAX 64
23#define DSV_MEMBIT_ENUM_MAX 8
24#define ITEM_MAX_DAN 128
25#define SWITCH_ZONE_MAX 0x20
26#define SWITCH_ONE_ZONE_MAX 0x10
27#define ITEM_ZONE_MAX 0x20
28#define ITEM_ONE_ZONE_MAX 0x10
29#define QUEST_LOG_SIZE 0xA94
30#define QUIVER_MAX 30
31#define BIG_QUIVER_MAX 60
32#define GIANT_QUIVER_MAX 100
33#define WALLET_MAX 300
34#define BIG_WALLET_MAX 600
35#define GIANT_WALLET_MAX 1000
36#define MAX_FINDABLE_FISHES 6
37
39 /* 0 */ A_BUTTON,
40 /* 1 */ B_BUTTON,
41};
42
43enum Wallets {
44 /* 0x0 */ WALLET,
45 /* 0x1 */ BIG_WALLET,
46 /* 0x2 */ GIANT_WALLET
47};
48
50 /* 0x00 */ SLOT_0,
51 /* 0x01 */ SLOT_1,
52 /* 0x02 */ SLOT_2,
53 /* 0x03 */ SLOT_3,
54 /* 0x04 */ SLOT_4, // Bow Slot
55 /* 0x05 */ SLOT_5,
56 /* 0x06 */ SLOT_6,
57 /* 0x07 */ SLOT_7,
58 /* 0x08 */ SLOT_8,
59 /* 0x09 */ SLOT_9,
60 /* 0x0A */ SLOT_10,
61 /* 0x0B */ SLOT_11,
62 /* 0x0C */ SLOT_12,
63 /* 0x0D */ SLOT_13,
64 /* 0x0E */ SLOT_14,
65 /* 0x0F */ SLOT_15,
66 /* 0x10 */ SLOT_16,
67 /* 0x11 */ SLOT_17,
68 /* 0x12 */ SLOT_18,
69 /* 0x13 */ SLOT_19,
70 /* 0x14 */ SLOT_20,
71 /* 0x15 */ SLOT_21,
72 /* 0x16 */ SLOT_22,
73 /* 0x17 */ SLOT_23
74};
75
77 /* 0x0000 */ HEART,
78 /* 0x0001 */ GREEN_RUPEE,
79 /* 0x0002 */ BLUE_RUPEE,
80 /* 0x0003 */ YELLOW_RUPEE,
81 /* 0x0004 */ RED_RUPEE,
82 /* 0x0005 */ PURPLE_RUPEE,
83 /* 0x0006 */ ORANGE_RUPEE,
84 /* 0x0007 */ SILVER_RUPEE,
85 /* 0x0008 */ S_MAGIC,
86 /* 0x0009 */ L_MAGIC,
87 /* 0x000A */ BOMB_5,
88 /* 0x000B */ BOMB_10,
89 /* 0x000C */ BOMB_20,
90 /* 0x000D */ BOMB_30,
91 /* 0x000E */ ARROW_10,
92 /* 0x000F */ ARROW_20,
93 /* 0x0010 */ ARROW_30,
94 /* 0x0011 */ ARROW_1,
95 /* 0x0012 */ PACHINKO_SHOT,
96 /* 0x0013 */ noentry1,
97 /* 0x0014 */ noentry2,
98 /* 0x0015 */ noentry3,
99 /* 0x0016 */ WATER_BOMB_5,
100 /* 0x0017 */ WATER_BOMB_10,
101 /* 0x0018 */ WATER_BOMB_20,
102 /* 0x0019 */ WATER_BOMB_30,
103 /* 0x001A */ BOMB_INSECT_5,
104 /* 0x001B */ BOMB_INSECT_10,
105 /* 0x001C */ BOMB_INSECT_20,
106 /* 0x001D */ BOMB_INSECT_30,
107 /* 0x001E */ RECOVERY_FAILY,
108 /* 0x001F */ TRIPLE_HEART,
109 /* 0x0020 */ SMALL_KEY,
110 /* 0x0021 */ KAKERA_HEART,
111 /* 0x0022 */ UTAWA_HEART,
112 /* 0x0023 */ MAP,
113 /* 0x0024 */ COMPUS,
114 /* 0x0025 */ DUNGEON_EXIT,
115 /* 0x0026 */ BOSS_KEY,
116 /* 0x0027 */ DUNGEON_BACK,
117 /* 0x0028 */ SWORD,
118 /* 0x0029 */ MASTER_SWORD,
119 /* 0x002A */ WOOD_SHIELD,
120 /* 0x002B */ SHIELD,
121 /* 0x002C */ HYLIA_SHIELD,
122 /* 0x002D */ TKS_LETTER,
123 /* 0x002E */ WEAR_CASUAL,
124 /* 0x002F */ WEAR_KOKIRI,
125 /* 0x0030 */ ARMOR,
126 /* 0x0031 */ WEAR_ZORA,
127 /* 0x0032 */ MAGIC_LV1,
128 /* 0x0033 */ DUNGEON_EXIT_2,
129 /* 0x0034 */ WALLET_LV1,
130 /* 0x0035 */ WALLET_LV2,
131 /* 0x0036 */ WALLET_LV3,
132 /* 0x0037 */ noentry4,
133 /* 0x0038 */ noentry5,
134 /* 0x0039 */ noentry6,
135 /* 0x003A */ noentry7,
136 /* 0x003B */ noentry8,
137 /* 0x003C */ noentry9,
138 /* 0x003D */ ZORAS_JEWEL,
139 /* 0x003E */ HAWK_EYE,
140 /* 0x003F */ WOOD_STICK,
141 /* 0x0040 */ BOOMERANG,
142 /* 0x0041 */ SPINNER,
143 /* 0x0042 */ IRONBALL,
144 /* 0x0043 */ BOW,
145 /* 0x0044 */ HOOKSHOT,
146 /* 0x0045 */ HVY_BOOTS,
147 /* 0x0046 */ COPY_ROD,
148 /* 0x0047 */ W_HOOKSHOT,
149 /* 0x0048 */ KANTERA,
150 /* 0x0049 */ LIGHT_SWORD,
151 /* 0x004A */ FISHING_ROD_1,
152 /* 0x004B */ PACHINKO,
153 /* 0x004C */ COPY_ROD_2,
154 /* 0x004D */ noentry10,
155 /* 0x004E */ noentry11,
156 /* 0x004F */ BOMB_BAG_LV2,
157 /* 0x0050 */ BOMB_BAG_LV1,
158 /* 0x0051 */ BOMB_IN_BAG,
159 /* 0x0052 */ noentry12,
160 /* 0x0053 */ LIGHT_ARROW,
161 /* 0x0054 */ ARROW_LV1,
162 /* 0x0055 */ ARROW_LV2,
163 /* 0x0056 */ ARROW_LV3,
164 /* 0x0057 */ noentry13,
165 /* 0x0058 */ LURE_ROD,
166 /* 0x0059 */ BOMB_ARROW,
167 /* 0x005A */ HAWK_ARROW,
168 /* 0x005B */ BEE_ROD,
169 /* 0x005C */ JEWEL_ROD,
170 /* 0x005D */ WORM_ROD,
171 /* 0x005E */ JEWEL_BEE_ROD,
172 /* 0x005F */ JEWEL_WORM_ROD,
173 /* 0x0060 */ EMPTY_BOTTLE,
174 /* 0x0061 */ RED_BOTTLE,
175 /* 0x0062 */ GREEN_BOTTLE,
176 /* 0x0063 */ BLUE_BOTTLE,
177 /* 0x0064 */ MILK_BOTTLE,
178 /* 0x0065 */ HALF_MILK_BOTTLE,
179 /* 0x0066 */ OIL_BOTTLE,
180 /* 0x0067 */ WATER_BOTTLE,
181 /* 0x0068 */ OIL_BOTTLE_2,
182 /* 0x0069 */ RED_BOTTLE_2,
183 /* 0x006A */ UGLY_SOUP,
184 /* 0x006B */ HOT_SPRING,
185 /* 0x006C */ FAIRY,
186 /* 0x006D */ HOT_SPRING_2,
187 /* 0x006E */ OIL2,
188 /* 0x006F */ OIL,
189 /* 0x0070 */ NORMAL_BOMB,
190 /* 0x0071 */ WATER_BOMB,
191 /* 0x0072 */ POKE_BOMB,
192 /* 0x0073 */ FAIRY_DROP,
193 /* 0x0074 */ WORM,
194 /* 0x0075 */ DROP_BOTTLE,
195 /* 0x0076 */ BEE_CHILD,
196 /* 0x0077 */ CHUCHU_RARE,
197 /* 0x0078 */ CHUCHU_RED,
198 /* 0x0079 */ CHUCHU_BLUE,
199 /* 0x007A */ CHUCHU_GREEN,
200 /* 0x007B */ CHUCHU_YELLOW,
201 /* 0x007C */ CHUCHU_PURPLE,
202 /* 0x007D */ LV1_SOUP,
203 /* 0x007E */ LV2_SOUP,
204 /* 0x007F */ LV3_SOUP,
205 /* 0x0080 */ LETTER,
206 /* 0x0081 */ BILL,
207 /* 0x0082 */ WOOD_STATUE,
208 /* 0x0083 */ IRIAS_PENDANT,
209 /* 0x0084 */ HORSE_FLUTE,
210 /* 0x0085 */ noentry14,
211 /* 0x0086 */ noentry15,
212 /* 0x0087 */ noentry16,
213 /* 0x0088 */ noentry17,
214 /* 0x0089 */ noentry18,
215 /* 0x008A */ noentry19,
216 /* 0x008B */ noentry20,
217 /* 0x008C */ noentry21,
218 /* 0x008D */ noentry22,
219 /* 0x008E */ noentry23,
220 /* 0x008F */ noentry24,
221 /* 0x0090 */ RAFRELS_MEMO,
222 /* 0x0091 */ ASHS_SCRIBBLING,
223 /* 0x0092 */ noentry25,
224 /* 0x0093 */ noentry26,
225 /* 0x0094 */ noentry27,
226 /* 0x0095 */ noentry28,
227 /* 0x0096 */ noentry29,
228 /* 0x0097 */ noentry30,
229 /* 0x0098 */ noentry31,
230 /* 0x0099 */ noentry32,
231 /* 0x009A */ noentry33,
232 /* 0x009B */ noentry34,
233 /* 0x009C */ CHUCHU_YELLOW2,
234 /* 0x009D */ OIL_BOTTLE3,
235 /* 0x009E */ SHOP_BEE_CHILD,
236 /* 0x009F */ CHUCHU_BLACK,
237 /* 0x00A0 */ LIGHT_DROP,
238 /* 0x00A1 */ DROP_CONTAINER,
239 /* 0x00A2 */ DROP_CONTAINER02,
240 /* 0x00A3 */ DROP_CONTAINER03,
241 /* 0x00A4 */ FILLED_CONTAINER,
242 /* 0x00A5 */ MIRROR_PIECE_2,
243 /* 0x00A6 */ MIRROR_PIECE_3,
244 /* 0x00A7 */ MIRROR_PIECE_4,
245 /* 0x00A8 */ noentry35,
246 /* 0x00A9 */ noentry36,
247 /* 0x00AA */ noentry37,
248 /* 0x00AB */ noentry38,
249 /* 0x00AC */ noentry39,
250 /* 0x00AD */ noentry40,
251 /* 0x00AE */ noentry41,
252 /* 0x00AF */ noentry42,
253 /* 0x00B0 */ SMELL_YELIA_POUCH,
254 /* 0x00B1 */ SMELL_PUMPKIN,
255 /* 0x00B2 */ SMELL_POH,
256 /* 0x00B3 */ SMELL_FISH,
257 /* 0x00B4 */ SMELL_CHILDREN,
258 /* 0x00B5 */ SMELL_MEDICINE,
259 /* 0x00B6 */ noentry43,
260 /* 0x00B7 */ noentry44,
261 /* 0x00B8 */ noentry45,
262 /* 0x00B9 */ noentry46,
263 /* 0x00BA */ noentry47,
264 /* 0x00BB */ noentry48,
265 /* 0x00BC */ noentry49,
266 /* 0x00BD */ noentry50,
267 /* 0x00BE */ noentry51,
268 /* 0x00BF */ noentry52,
269 /* 0x00C0 */ M_BEETLE,
270 /* 0x00C1 */ F_BEETLE,
271 /* 0x00C2 */ M_BUTTERFLY,
272 /* 0x00C3 */ F_BUTTERFLY,
273 /* 0x00C4 */ M_STAG_BEETLE,
274 /* 0x00C5 */ F_STAG_BEETLE,
275 /* 0x00C6 */ M_GRASSHOPPER,
276 /* 0x00C7 */ F_GRASSHOPPER,
277 /* 0x00C8 */ M_NANAFUSHI,
278 /* 0x00C9 */ F_NANAFUSHI,
279 /* 0x00CA */ M_DANGOMUSHI,
280 /* 0x00CB */ F_DANGOMUSHI,
281 /* 0x00CC */ M_MANTIS,
282 /* 0x00CD */ F_MANTIS,
283 /* 0x00CE */ M_LADYBUG,
284 /* 0x00CF */ F_LADYBUG,
285 /* 0x00D0 */ M_SNAIL,
286 /* 0x00D1 */ F_SNAIL,
287 /* 0x00D2 */ M_DRAGONFLY,
288 /* 0x00D3 */ F_DRAGONFLY,
289 /* 0x00D4 */ M_ANT,
290 /* 0x00D5 */ F_ANT,
291 /* 0x00D6 */ M_MAYFLY,
292 /* 0x00D7 */ F_MAYFLY,
293 /* 0x00D8 */ noentry53,
294 /* 0x00D9 */ noentry54,
295 /* 0x00DA */ noentry55,
296 /* 0x00DB */ noentry56,
297 /* 0x00DC */ noentry57,
298 /* 0x00DD */ noentry58,
299 /* 0x00DE */ noentry59,
300 /* 0x00DF */ noentry60,
301 /* 0x00E0 */ POU_SPIRIT,
302 /* 0x00E1 */ noentry61,
303 /* 0x00E2 */ noentry62,
304 /* 0x00E3 */ noentry63,
305 /* 0x00E4 */ noentry64,
306 /* 0x00E5 */ noentry65,
307 /* 0x00E6 */ noentry66,
308 /* 0x00E7 */ noentry67,
309 /* 0x00E8 */ noentry68,
310 /* 0x00E9 */ ANCIENT_DOCUMENT,
311 /* 0x00EA */ AIR_LETTER,
312 /* 0x00EB */ ANCIENT_DOCUMENT2,
313 /* 0x00EC */ LV7_DUNGEON_EXIT,
314 /* 0x00ED */ LINKS_SAVINGS,
315 /* 0x00EE */ SMALL_KEY2,
316 /* 0x00EF */ POU_FIRE1,
317 /* 0x00F0 */ POU_FIRE2,
318 /* 0x00F1 */ POU_FIRE3,
319 /* 0x00F2 */ POU_FIRE4,
320 /* 0x00F3 */ BOSSRIDER_KEY,
321 /* 0x00F4 */ TOMATO_PUREE,
322 /* 0x00F5 */ TASTE,
323 /* 0x00F6 */ LV5_BOSS_KEY,
324 /* 0x00F7 */ SURFBOARD,
325 /* 0x00F8 */ KANTERA2,
326 /* 0x00F9 */ L2_KEY_PIECES1,
327 /* 0x00FA */ L2_KEY_PIECES2,
328 /* 0x00FB */ L2_KEY_PIECES3,
329 /* 0x00FC */ KEY_OF_CARAVAN,
330 /* 0x00FD */ LV2_BOSS_KEY,
331 /* 0x00FE */ KEY_OF_FILONE,
332 /* 0x00FF */ NO_ITEM,
333 /* 0x0100 */ noentry69,
334 /* 0x0101 */ noentry70,
335 /* 0x0102 */ noentry71,
336 /* 0x0103 */ EQUIP_SWORD,
337 /* 0x0104 */ noentry72,
338 /* 0x0105 */ noentry73,
339 /* 0x0106 */ noentry74,
340 /* 0x0107 */ noentry75,
341 /* 0x0108 */ noentry76,
342 /* 0x0109 */ noentry77,
343 /* 0x010A */ noentry78,
344 /* 0x010B */ noentry79,
345};
346
349 /* 0x1 */ COLLECT_SWORD,
350 /* 0x2 */ COLLECT_SHIELD,
351 /* 0x3 */ COLLECT_SMELL,
352 /* 0x4 */ B_BUTTON_ITEM
354
361
367
369 /* 0x0 */ KOKIRI_CLOTHES_FLAG
371
373 /* 0x0 */ FARON_VESSEL,
374 /* 0x1 */ ELDIN_VESSEL,
375 /* 0x2 */ LANAYRU_VESSEL
377
379 /* 0x0 */ ARROW_MAX,
381 /* 0x2 */ WATER_BOMB_MAX,
382 /* 0x6 */ POKE_BOMB_MAX = 6
384
385enum {
389 /* 0x3 */ SELECT_ITEM_B,
392};
393
394enum {
396 /* 0x1 */ TF_STATUS_WOLF,
397};
398
400public:
401 void init();
403 u8 getSelectItemIndex(int i_no) const;
404 void setMixItemIndex(int i_no, u8 i_slotNo);
405 u8 getMixItemIndex(int i_no) const;
406 u16 getRupeeMax() const;
407 int isMagicFlag(u8 i_magic) const;
408
409 u16 getMaxLife() const { return mMaxLife; }
410 u16 getLife() const { return mLife; }
411 u16 getRupee() const { return mRupee; }
412 u16 getOil() const { return mOil; }
413 u16 getMaxOil() const { return mMaxOil; }
414 u8 getMagic() const { return mMagic; }
415 u8 getMaxMagic() const { return mMaxMagic; }
416 u8 getSelectEquip(int item) const { return mSelectEquip[item]; }
418 u8 getWalletSize() const { return mWalletSize; }
419 void setOil(u16 i_oil) { mOil = i_oil; }
429
430private:
431 /* 0x00 */ u16 mMaxLife;
432 /* 0x02 */ u16 mLife;
433 /* 0x04 */ u16 mRupee;
434 /* 0x06 */ u16 mMaxOil;
435 /* 0x08 */ u16 mOil;
436 /* 0x0A */ u8 unk10;
437 /* 0x0B */ u8 mSelectItem[MAX_SELECT_ITEM]; // For GC: first 2 are X & Y, others unused; For
438 // Wii (in order): Left, Right, Down, B
439 /* 0x0F */ u8 mMixItem[MAX_SELECT_ITEM]; // Combo items; For GC: first 2 are X & Y, others
440 // unused; For Wii (in order): Left, Right, Down, B
442 /* 0x19 */ u8 mWalletSize;
443 /* 0x1A */ u8 mMaxMagic;
444 /* 0x1B */ u8 mMagic;
445 /* 0x1C */ u8 mMagicFlag;
446 /* 0x1D */ u8 unk29;
448 /* 0x1F */ u8 unk31[3];
449}; // Size: 0x28
450
452public:
453 void init();
454 void onDarkClearLV(int i_no);
455 BOOL isDarkClearLV(int i_no) const;
456 void onTransformLV(int i_no);
457 BOOL isTransformLV(int i_no) const;
458
460 u16 getDate() const { return mDate; }
461 f32 getTime() const { return mTime; }
464 OSTime getDateIpl() const { return mDateIpl; }
465
466private:
467 /* 0x00 */ OSTime mDateIpl;
470 /* 0x0A */ u8 unk10;
471 /* 0x0B */ u8 unk11;
472 /* 0x0C */ f32 mTime;
473 /* 0x10 */ u16 mDate;
474 /* 0x12 */ u8 unk18[3];
475}; // Size: 0x18
476
478public:
480
481 void init();
482 void set(const char* i_name, const cXyz& i_pos, s16 i_angle, s8 i_roomNo);
483
484private:
485 /* 0x00 */ cXyz mPos;
486 /* 0x0C */ u16 mAngleY;
487 /* 0x0E */ char mName[8];
488 /* 0x16 */ u8 mSpawnId;
489 /* 0x17 */ u8 mRoomNo;
490}; // Size: 0x18
491
493public:
494 void init();
495 void set(const char* i_name, s8 i_roomNo, u8 i_status);
496 s8 getRoomNo() const { return mRoomNo; }
497 u8 getPlayerStatus() const { return mPlayerStatus; }
498 char* getName() { return mName; }
499
500private:
501 /* 0x00 */ char mName[8];
502 /* 0x08 */ u8 mPlayerStatus;
503 /* 0x09 */ s8 mRoomNo;
504 /* 0x0A */ u8 unk10;
505 /* 0x0B */ u8 unk11;
506}; // Size: 0xC
507
509public:
511
512 void init();
513 BOOL isRegionBit(int i_region) const;
514 void onRegionBit(int i_region);
515 void set(const char* i_name, const cXyz& i_pos, s16 i_angle, s8 i_spawn, u8 i_regionNo);
516
520 cXyz& getPos() { return mPos; }
521 u8 getRegionNo() const { return mRegionNo; }
522 char* getName() { return mName; }
523 s16 getAngleY() { return mAngleY; }
524
525private:
526 /* 0x00 */ cXyz mPos;
527 /* 0x0C */ s16 mAngleY;
528 /* 0x0E */ char mName[8];
529 /* 0x16 */ u8 mLastSpawnId;
530 /* 0x17 */ u8 mRegionNo;
531 /* 0x18 */ bool mFieldDataExistFlag;
532 /* 0x19 */ u8 mRegion;
533 /* 0x1A */ u8 unk26[2];
534}; // Size: 0x1C
535
537public:
539
540 void init();
541 void setWarpItemData(const char* i_name, const cXyz& i_pos, s16 i_angle, s8 i_roomNo, u8, u8);
542
543 const char* getName() { return mName; }
544 cXyz& getPos() { return mPos; }
545 s16 getAngleY() { return mAngleY; }
546 s8 getRoomNo() { return mRoomNo; }
550
551private:
552 /* 0x00 */ cXyz mPos;
553 /* 0x0C */ s16 mAngleY;
554 /* 0x0E */ char mName[8];
555 /* 0x16 */ u8 mSpawnId;
556 /* 0x17 */ s8 mRoomNo;
558 /* 0x19 */ u8 unk25[3];
559}; // Size: 0x1C
560
562public:
563 void init();
564 void setItem(int i_slotNo, u8 i_itemNo);
565 u8 getItem(int i_slotNo, bool i_checkCombo) const;
566 void setLineUpItem();
567 u8 getLineUpItem(int i_slotNo) const;
570 void setEmptyBottle();
575 int checkInsectBottle();
581 void setEmptyBombBag();
585 void setRodTypeLevelUp();
586 void setBaitItem(u8 i_itemNo);
587
588private:
589 /* 0x00 */ u8 mItems[24];
590 /* 0x18 */ u8 mItemSlots[24];
591}; // Size: 0x30
592
594public:
595 void init();
596 void onFirstBit(u8 i_itemNo);
597 void offFirstBit(u8 i_itemNo);
598 int isFirstBit(u8 i_itemNo) const;
599
600private:
601 /* 0x0 */ u32 mItemFlags[8];
602}; // Size: 0x20
603
605public:
606 void init();
608 u8 getBombNum(u8 i_bagIdx) const;
612
613 u8 getArrowNum() const { return mArrowNum; }
615 u8 getPachinkoNum() const { return mPachinkoNum; }
617
618private:
619 /* 0x0 */ u8 mArrowNum;
620 /* 0x1 */ u8 mBombNum[3];
621 /* 0x4 */ u8 mBottleNum[4];
622 /* 0x8 */ u8 mPachinkoNum;
623 /* 0x9 */ u8 unk5[3];
624}; // Size: 0xC
625
627public:
628 void init();
630 u8 getBombNum(u8 i_bombType) const;
631
633 u8 getArrowNum() const { return mItemMax[ARROW_MAX]; }
634
635private:
636 /* 0x0 */ u8 mItemMax[8];
637}; // Size: 0x8
638
640public:
641 void init();
642 void setCollect(int i_item_type, u8 i_item);
643 BOOL isCollect(int i_item_type, u8 i_item) const;
648
649 u8 getPohNum() { return mPohNum; }
650
651private:
652 /* 0x0 */ u8 mItem[8];
653 /* 0x8 */ u8 unk8;
654 /* 0x9 */ u8 mCrystal;
655 /* 0xA */ u8 mMirror;
656 /* 0xB */ u8 unk11;
657 /* 0xC */ u8 mPohNum;
658 /* 0xD */ u8 padding[3];
659}; // Size: 0x10
660
662public:
663 void init();
664
665private:
666 /* 0x0 */ u8 unk0[3];
667 /* 0x3 */ u8 unk3;
668}; // Size: 0x4
669
671public:
672 void init();
677
678private:
679 /* 0x0 */ u8 mLightDropNum[4];
681 /* 0x5 */ u8 unk5[3];
682}; // Size: 0x8
683
685public:
686 void init();
687 void onLetterGetFlag(int i_no);
688 BOOL isLetterGetFlag(int i_no) const;
689 void onLetterReadFlag(int i_no);
690 int isLetterReadFlag(int i_no) const;
693
694private:
695 /* 0x00 */ u32 mLetterGetFlags[2];
696 /* 0x08 */ u32 mLetterReadFlags[2];
697 /* 0x10 */ u8 mGetNumber[64];
698}; // Size: 0x50
699
701public:
702 void init();
707
708private:
709 /* 0x00 */ u16 mFishCount[16];
710 /* 0x20 */ u8 mMaxSize[16];
711}; // Size: 0x34
712
714public:
715 void init();
716 char* getLinkName() { return mPlayerName; }
717 char* getHorseName() { return mHorseName; }
718 void setPlayerName(const char* i_name) { strcpy((char*)mPlayerName, i_name); }
719 void setHorseName(const char* i_name) { strcpy((char*)mHorseName, i_name); }
721 s64 getTotalTime() const { return mTotalTime; }
722
724 if (mDeathCount < 0xFFFF) {
725 mDeathCount++;
726 }
727 }
728
729private:
730 /* 0x00 */ u32 unk0;
731 /* 0x04 */ u32 unk4;
732 /* 0x08 */ s64 mTotalTime;
733 /* 0x10 */ u16 unk16;
734 /* 0x12 */ u16 mDeathCount;
735 /* 0x14 */ char mPlayerName[16];
736 /* 0x24 */ u8 unk36;
737 /* 0x25 */ char mHorseName[16];
738 /* 0x35 */ u8 unk53;
739 /* 0x36 */ u8 mClearCount;
740 /* 0x37 */ u8 unk55[5];
741}; // Size: 0x40
742
744public:
745 void init();
746 u32 checkVibration() const;
747 u8 getSound();
748 void setSound(u8 i_mode);
751
758 bool getShortCut() { return mShortCut; }
762 bool getPointer() { return mPointer; }
764
765private:
766 /* 0x0 */ u8 unk0;
767 /* 0x1 */ u8 mSoundMode;
768 /* 0x2 */ u8 mAttentionType; // Lock-On Type; 0 : hold, 1 : switch
769 /* 0x3 */ u8 mVibration; // Rumble status
770 /* 0x4 */ u8 unk4;
771 /* 0x5 */ u8 unk5;
772 /* 0x6 */ u16 mCalibrateDist; // Wii pointer horizontal calibration. Default is 0x015E
773 /* 0x8 */ u8 mCalValue; // Wii pointer vertical calibration. Default is 0x00
774 /* 0x9 */ bool mShortCut; // Wii icon shortcut enabled/disabled.
775 /* 0xA */ u8 mCameraControl; // 0 : normal, 1 : inverted
776 /* 0xB */ bool mPointer; // Wii pointer enabled/disabled.
777}; // Size: 0xC
778
780public:
782 void init();
783
801
802private:
820}; // Size: 0x1EC
821
822class dSv_memBit_c {
823public:
824 enum {
825 /* 0x0 */ MAP,
826 /* 0x1 */ COMPASS,
827 /* 0x2 */ BOSS_KEY,
829 /* 0x4 */ STAGE_LIFE,
831 /* 0x6 */ OOCCOO_NOTE,
832 /* 0x7 */ STAGE_BOSS_ENEMY_2
833 };
834
835 void init();
836 void onTbox(int i_no);
837 void offTbox(int i_no);
838 BOOL isTbox(int i_no) const;
839 void onSwitch(int i_no);
840 void offSwitch(int i_no);
841 BOOL isSwitch(int i_no) const;
842 BOOL revSwitch(int i_no);
843 void onItem(int i_no);
844 BOOL isItem(int i_no) const;
845 void onDungeonItem(int i_no);
847
848 u8 getKeyNum() { return mKeyNum; }
867
868private:
869 /* 0x00 */ u32 mTbox[2];
870 /* 0x08 */ u32 mSwitch[4];
871 /* 0x18 */ u32 mItem[1];
872 /* 0x1C */ u8 mKeyNum;
873 /* 0x1D */ u8 mDungeonItem;
874}; // Size: 0x20
875
877public:
878 void init();
879 void onEventBit(u16 i_no);
880 void offEventBit(u16 i_no);
881 int isEventBit(u16 i_no) const;
882 void setEventReg(u16 i_reg, u8 i_no);
883 u8 getEventReg(u16 i_reg) const;
884
885 void* getPEventBit() { return (void*)mEvent; }
886
887private:
888 /* 0x0 */ u8 mEvent[256];
889}; // Size: 0x100
890
892public:
893 void init();
894
897
898private:
899 /* 0x00 */ u8 unk0;
900 /* 0x01 */ u8 unk1[3];
901 /* 0x04 */ u32 mStarTime;
902 /* 0x08 */ u32 mBalloonScore;
903 /* 0x0C */ u32 mRaceGameTime;
904 /* 0x10 */ u32 unk16;
905 /* 0x14 */ u32 unk20;
906}; // Size: 0x18
907
909public:
910 dSv_memory_c() { this->init(); }
911 void init();
912 dSv_memBit_c& getBit() { return mBit; }
913 const dSv_memBit_c& getBit() const { return mBit; }
914
915private:
917}; // Size: 0x20
918
920
922public:
923 dSv_memory2_c() { this->init(); }
924 void init();
925 void onVisitedRoom(int i_no);
926 void offVisitedRoom(int i_no);
928
929private:
930 /* 0x0 */ u32 mVisitedRoom[2];
931}; // Size: 0x8
932
934
936public:
937 bool init(s8 i_stageNo);
938 void onSwitch(int i_no);
939 void offSwitch(int i_no);
940 BOOL isSwitch(int i_no) const;
941 BOOL revSwitch(int i_no);
942 void onItem(int i_no);
943 BOOL isItem(int i_no) const;
944
945 void reset() { mStageNo = -1; }
946
947private:
948 /* 0x00 */ s8 mStageNo;
949 /* 0x01 */ u8 unk1;
950 /* 0x02 */ u8 unk2[2];
951 /* 0x04 */ u32 mSwitch[2];
952 /* 0x0C */ u32 mItem[4];
953 /* 0x1C */ s16 unk28[16];
954}; // Size: 0x3C
955
957public:
958 void init();
959 void clearRoomSwitch();
960 void clearRoomItem();
961 void onSwitch(int i_no);
962 void offSwitch(int i_no);
963 BOOL isSwitch(int i_no) const;
964 BOOL revSwitch(int i_no);
965 void onOneSwitch(int i_no);
966 void offOneSwitch(int i_no);
967 BOOL isOneSwitch(int i_no) const;
969 void onItem(int i_no);
970 BOOL isItem(int i_no) const;
971 void onOneItem(int i_no);
972 BOOL isOneItem(int i_no) const;
973
974private:
975 /* 0x00 */ u16 mSwitch[2];
976 /* 0x04 */ u16 mRoomSwitch;
977 /* 0x06 */ u16 mItem[2];
978 /* 0x0A */ u16 mRoomItem;
979 /* 0x0C */ u16 unk12;
980}; // Size: 0xE
981
983public:
984 void init();
985 void on(int i_id);
986 void off(int i_id);
987 BOOL is(int i_id) const;
988
989 static const int ACTOR_MAX = 0xFFFF;
990
991private:
992 /* 0x00 */ u32 mActorFlags[4];
993}; // Size: 0x10
994
996public:
997 dSv_zone_c() { mRoomNo = -1; }
998 void init(int i_roomNo);
999
1001 const dSv_zoneBit_c& getBit() const { return mBit; }
1003 const dSv_zoneActor_c& getActor() const { return mActor; }
1004
1005 s8& getRoomNo() { return mRoomNo; }
1006 void reset() { mRoomNo = -1; }
1007
1008private:
1009 /* 0x00 */ s8 mRoomNo;
1010 /* 0x01 */ u8 unk1;
1013}; // Size: 0x20
1014
1015STATIC_ASSERT(sizeof(dSv_zone_c) == 0x20);
1016
1018public:
1019 void setRoom(const cXyz& i_position, s16 i_angleY, s8 i_roomNo);
1020
1021 void setRoomParam(u32 param) { mRoomParam = param; }
1023 void setLastSceneInfo(f32 speed, u32 mode, s16 angle) {
1024 mLastSpeedF = speed;
1025 mLastMode = mode;
1027 }
1028
1029 s16 getStartPoint() const { return mStartPoint; }
1030 u32 getLastMode() const { return mLastMode; }
1031 s8 getRoomNo() const { return mRoomNo; }
1032 u32 getRoomParam() const { return mRoomParam; }
1033 cXyz& getRoomPos() { return mRoomPos; }
1034 s16 getRoomAngleY() const { return mRoomAngleY; }
1035 s16 getLastAngleY() const { return mLastAngleY; }
1036 f32 getLastSpeedF() const { return mLastSpeedF; }
1037
1038private:
1039 /* 0x00 */ s8 mRoomNo;
1040 /* 0x01 */ u8 field_0x01[3];
1041 /* 0x04 */ s16 mStartPoint;
1042 /* 0x06 */ s16 mRoomAngleY;
1043 /* 0x08 */ cXyz mRoomPos;
1044 /* 0x14 */ u32 mRoomParam;
1045 /* 0x18 */ f32 mLastSpeedF;
1046 /* 0x1C */ u32 mLastMode;
1047 /* 0x20 */ s16 mLastAngleY;
1048}; // Size: 0x24
1049
1051public:
1053 public:
1054 /* 0x00 */ cXyz mCameraCtr;
1055 /* 0x0C */ cXyz mCameraEye;
1056 /* 0x18 */ cXyz mCameraUp;
1057 }; // Size: 0x24
1058
1059 void set(const cXyz& i_position, s16 i_angleY, s8, u32 i_param);
1060
1061 u32 getParam() const { return mParam; }
1062 cXyz& getPos() { return mPosition; }
1063 s16 getAngleY() const { return mAngleY; }
1064
1065 f32 getCameraFvy() const { return mCameraFvy; }
1067
1068 const cXyz& getCameraUp() const { return mCamera.mCameraUp; }
1069 const cXyz& getCameraEye() const { return mCamera.mCameraEye; }
1070 const cXyz& getCameraCtr() const { return mCamera.mCameraCtr; }
1071
1075
1076private:
1077 /* 0x00 */ cXyz mPosition;
1078 /* 0x0C */ u32 mParam;
1079 /* 0x10 */ s16 mAngleY;
1080 /* 0x12 */ s8 unk18;
1082 /* 0x38 */ f32 mCameraFvy;
1083}; // Size: 0x3C
1084
1086public:
1087private:
1088 u8 unk[80];
1089};
1090
1092public:
1094
1095 void init();
1097
1103
1104 static const int STAGE_MAX = 32;
1105 static const int STAGE2_MAX = 64;
1106
1107 // private:
1111 /* 0x7F0 */ dSv_event_c mEvent;
1114}; // Size: 0x958
1115
1116class dSv_info_c {
1117public:
1118 void init();
1119 void getSave(int i_stageNo);
1120 void putSave(int i_stageNo);
1121 void initZone();
1122 u32 createZone(int i_roomNo);
1123 void onSwitch(int i_no, int i_roomNo);
1124 void offSwitch(int i_no, int i_roomNo);
1125 BOOL isSwitch(int i_no, int i_roomNo) const;
1126 BOOL revSwitch(int i_no, int i_roomNo);
1127 void onItem(int i_no, int i_roomNo);
1128 BOOL isItem(int i_no, int i_roomNo) const;
1129 void onActor(int i_no, int i_roomNo);
1130 void offActor(int i_no, int i_roomNo);
1131 BOOL isActor(int i_no, int i_roomNo) const;
1132 int memory_to_card(char* card_ptr, int dataNum);
1133 int card_to_memory(char* card_ptr, int dataNum);
1134 int initdata_to_card(char* card_ptr, int dataNum);
1135
1139 dSv_zone_c& getZone(int id) { return mZone[id]; }
1141 dSv_event_c& getTmp() { return mTmp; }
1145 dSv_danBit_c& getDan() { return mDan; }
1147 s64 getStartTime() const { return mStartTime; }
1152 void resetDan() { mDan.reset(); }
1153 u8 getDataNum() const { return mDataNum; }
1154 void setDataNum(u8 num) { mDataNum = num; }
1156 u8 getNoFile() const { return mNoFile; }
1158 u8 getNewFile() const { return mNewFile; }
1160
1161 static const int MEMORY_SWITCH = 0x80;
1162 static const int DAN_SWITCH = 0x40;
1163 static const int ZONE_SWITCH = 0x20;
1164 static const int ONEZONE_SWITCH = 0x10;
1165
1166 static const int MEMORY_ITEM = 0x80;
1167 static const int DAN_ITEM = 0x20;
1168 static const int ZONE_ITEM = 0x20;
1169 static const int ONEZONE_ITEM = 0x10;
1170
1171 static const int ZONE_MAX = 0x20;
1172
1173private:
1176 /* 0x978 */ dSv_danBit_c mDan;
1179 /* 0xDD8 */ dSv_event_c mTmp;
1181 /* 0xF14 */ u8 field_0xf14[4];
1182 /* 0xF18 */ u8 mDataNum;
1183 /* 0xF19 */ u8 mNewFile;
1184 /* 0xF1A */ u8 mNoFile;
1185 /* 0xF1B */ u8 field_0xf1b[13];
1186 /* 0xF28 */ s64 mStartTime;
1187 /* 0xF30 */ s64 mSaveTotalTime;
1188}; // Size: 0xF38
1189
1191public:
1192 enum {
1193 #include "d/d_save_bit_labels.inc"
1194 };
1195
1196 static u16 saveBitLabels[822];
1197};
1198
1200public:
1201 enum {
1203 };
1204
1205 static u16 const tempBitLabels[185];
1206};
1207
1208#endif /* D_SAVE_D_SAVE_H */
OSTime time
Definition GXInit.c:61
s64 OSTime
Definition OSTime.h:10
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition d_save.h:891
u32 getBalloonScore() const
Definition d_save.h:896
u32 unk16
Definition d_save.h:904
u32 mBalloonScore
Definition d_save.h:902
u32 getRaceGameTime() const
Definition d_save.h:895
u32 mRaceGameTime
Definition d_save.h:903
u32 mStarTime
Definition d_save.h:901
void init()
Definition d_save.cpp:1206
u8 unk1[3]
Definition d_save.h:900
u8 unk0
Definition d_save.h:899
u32 unk20
Definition d_save.h:905
Definition d_save.h:935
BOOL isSwitch(int i_no) const
Definition d_save.cpp:1282
s16 unk28[16]
Definition d_save.h:953
void onItem(int i_no)
Definition d_save.cpp:1294
u32 mSwitch[2]
Definition d_save.h:951
u32 mItem[4]
Definition d_save.h:952
BOOL revSwitch(int i_no)
Definition d_save.cpp:1287
void offSwitch(int i_no)
Definition d_save.cpp:1277
bool init(s8 i_stageNo)
Definition d_save.cpp:1247
BOOL isItem(int i_no) const
Definition d_save.cpp:1299
u8 unk2[2]
Definition d_save.h:950
s8 mStageNo
Definition d_save.h:948
void onSwitch(int i_no)
Definition d_save.cpp:1272
void reset()
Definition d_save.h:945
u8 unk1
Definition d_save.h:949
Definition d_save.h:876
void setEventReg(u16 i_reg, u8 i_no)
Definition d_save.cpp:1194
void offEventBit(u16 i_no)
Definition d_save.cpp:1182
void onEventBit(u16 i_no)
Definition d_save.cpp:1176
int isEventBit(u16 i_no) const
Definition d_save.cpp:1188
void * getPEventBit()
Definition d_save.h:885
void init()
Definition d_save.cpp:1168
u8 mEvent[256]
Definition d_save.h:888
u8 getEventReg(u16 i_reg) const
Definition d_save.cpp:1201
Definition d_save.h:1190
static u16 saveBitLabels[822]
Definition d_save.h:472
Definition d_save.h:1199
static u16 const tempBitLabels[185]
Definition d_save.h:1789
Definition d_save.h:700
u16 getFishCount(u8 i_fishIndex) const
Definition d_save.h:704
void addFishCount(u8 i_fishIndex)
Definition d_save.cpp:999
void init()
Definition d_save.cpp:991
u8 getMaxSize(s32 i_sizeIndex)
Definition d_save.h:705
u16 mFishCount[16]
Definition d_save.h:709
void setMaxSize(s32 i_sizeIndex, u8 i_size)
Definition d_save.h:706
u8 mMaxSize[16]
Definition d_save.h:710
Definition d_save.h:477
dSv_horse_place_c()
Definition d_save.h:479
void init()
Definition d_save.cpp:156
u8 mRoomNo
Definition d_save.h:489
u16 mAngleY
Definition d_save.h:486
cXyz mPos
Definition d_save.h:485
u8 mSpawnId
Definition d_save.h:488
char mName[8]
Definition d_save.h:487
void set(const char *i_name, const cXyz &i_pos, s16 i_angle, s8 i_roomNo)
Definition d_save.cpp:165
Definition d_save.h:684
u8 getGetNumber(int i_no)
Definition d_save.h:691
u8 mGetNumber[64]
Definition d_save.h:697
u32 mLetterReadFlags[2]
Definition d_save.h:696
u32 mLetterGetFlags[2]
Definition d_save.h:695
void onLetterReadFlag(int i_no)
Definition d_save.cpp:981
void onLetterGetFlag(int i_no)
Definition d_save.cpp:971
void setGetNumber(int i_no, u8 i_value)
Definition d_save.h:692
int isLetterReadFlag(int i_no) const
Definition d_save.cpp:986
BOOL isLetterGetFlag(int i_no) const
Definition d_save.cpp:976
void init()
Definition d_save.cpp:959
Definition d_save.h:670
u8 mLightDropGetFlag
Definition d_save.h:680
BOOL isLightDropGetFlag(u8 i_nowLevel) const
Definition d_save.cpp:951
void onLightDropGetFlag(u8 i_nowLevel)
Definition d_save.cpp:943
u8 getLightDropNum(u8 i_nowLevel) const
Definition d_save.cpp:935
void init()
Definition d_save.cpp:915
void setLightDropNum(u8 i_nowLevel, u8 i_dropNum)
Definition d_save.cpp:928
u8 unk5[3]
Definition d_save.h:681
u8 mLightDropNum[4]
Definition d_save.h:679
Definition d_save.h:921
void offVisitedRoom(int i_no)
Definition d_save.cpp:1237
BOOL isVisitedRoom(int i_no)
Definition d_save.cpp:1242
void onVisitedRoom(int i_no)
Definition d_save.cpp:1231
u32 mVisitedRoom[2]
Definition d_save.h:930
void init()
Definition d_save.cpp:1224
dSv_memory2_c()
Definition d_save.h:923
Definition d_save.h:908
const dSv_memBit_c & getBit() const
Definition d_save.h:913
dSv_memBit_c mBit
Definition d_save.h:916
dSv_memBit_c & getBit()
Definition d_save.h:912
dSv_memory_c()
Definition d_save.h:910
void init()
Definition d_save.cpp:1219
Definition d_save.h:779
dSv_horse_place_c mHorsePlace
Definition d_save.h:805
dSv_player_status_a_c & getPlayerStatusA()
Definition d_save.h:785
dSv_player_config_c mConfig
Definition d_save.h:819
dSv_player_last_mark_info_c & getPlayerLastMarkInfo()
Definition d_save.h:791
dSv_player_field_last_stay_info_c mPlayerFieldLastStayInfo
Definition d_save.h:807
dSv_light_drop_c mLightDrop
Definition d_save.h:815
dSv_player_field_last_stay_info_c & getPlayerFieldLastStayInfo()
Definition d_save.h:798
dSv_player_item_max_c mItemMax
Definition d_save.h:812
dSv_player_last_mark_info_c mPlayerLastMarkInfo
Definition d_save.h:808
dSv_player_item_record_c mItemRecord
Definition d_save.h:811
dSv_player_get_item_c & getGetItem()
Definition d_save.h:794
dSv_fishing_info_c & getFishingInfo()
Definition d_save.h:797
dSv_player_return_place_c mPlayerReturnPlace
Definition d_save.h:806
dSv_player_wolf_c mWolf
Definition d_save.h:814
dSv_player_return_place_c & getPlayerReturnPlace()
Definition d_save.h:792
dSv_player_config_c & getConfig()
Definition d_save.h:795
dSv_fishing_info_c mFishingInfo
Definition d_save.h:817
dSv_player_get_item_c mGetItem
Definition d_save.h:810
dSv_player_info_c mPlayerInfo
Definition d_save.h:818
dSv_player_item_record_c & getItemRecord()
Definition d_save.h:789
dSv_player_collect_c & getCollect()
Definition d_save.h:788
dSv_player_collect_c mCollect
Definition d_save.h:813
void init()
Definition d_save.cpp:1073
dSv_player_info_c & getPlayerInfo()
Definition d_save.h:784
dSv_player_status_b_c mPlayerStatusB
Definition d_save.h:804
dSv_player_item_c & getItem()
Definition d_save.h:787
dSv_player_item_max_c & getItemMax()
Definition d_save.h:790
dSv_player_item_c mItem
Definition d_save.h:809
dSv_letter_info_c mLetterInfo
Definition d_save.h:816
dSv_player_status_a_c mPlayerStatusA
Definition d_save.h:803
dSv_letter_info_c & getLetterInfo()
Definition d_save.h:796
dSv_player_c()
Definition d_save.h:781
dSv_player_status_b_c & getPlayerStatusB()
Definition d_save.h:786
dSv_light_drop_c & getLightDrop()
Definition d_save.h:793
Definition d_save.h:639
u8 mItem[8]
Definition d_save.h:652
u8 getPohNum()
Definition d_save.h:649
u8 padding[3]
Definition d_save.h:658
u8 mPohNum
Definition d_save.h:657
void onCollectMirror(u8 i_item)
Definition d_save.cpp:895
void setCollect(int i_item_type, u8 i_item)
Definition d_save.cpp:872
void onCollectCrystal(u8 i_item)
Definition d_save.cpp:883
u8 mCrystal
Definition d_save.h:654
BOOL isCollect(int i_item_type, u8 i_item) const
Definition d_save.cpp:877
u8 unk11
Definition d_save.h:656
void init()
Definition d_save.cpp:859
u8 unk8
Definition d_save.h:653
BOOL isCollectCrystal(u8 i_item) const
Definition d_save.cpp:889
BOOL isCollectMirror(u8 i_item) const
Definition d_save.cpp:901
u8 mMirror
Definition d_save.h:655
Definition d_save.h:743
void setPointer(bool i_mPointer)
Definition d_save.h:763
void setCalibrateDist(u16 i_mCalibrateDist)
Definition d_save.h:755
u8 getCameraControl()
Definition d_save.h:760
void setSound(u8 i_mode)
Definition d_save.cpp:1058
u8 mCameraControl
Definition d_save.h:775
void setShortCut(bool i_mShortCut)
Definition d_save.h:759
bool getShortCut()
Definition d_save.h:758
u8 getSound()
Definition d_save.cpp:1052
u8 unk0
Definition d_save.h:766
u16 mCalibrateDist
Definition d_save.h:772
u8 getCalValue()
Definition d_save.h:756
u8 mVibration
Definition d_save.h:769
void setCalValue(u8 i_mCalValue)
Definition d_save.h:757
void setVibration(u8 i_status)
Definition d_save.cpp:1068
u8 mSoundMode
Definition d_save.h:767
u16 getCalibrateDist()
Definition d_save.h:754
u8 mCalValue
Definition d_save.h:773
u32 checkVibration() const
Definition d_save.cpp:1046
bool getPointer()
Definition d_save.h:762
void setCameraControl(u8 i_mCameraControl)
Definition d_save.h:761
u8 unk5
Definition d_save.h:771
bool mPointer
Definition d_save.h:776
void init()
Definition d_save.cpp:1023
u8 mAttentionType
Definition d_save.h:768
bool mShortCut
Definition d_save.h:774
u8 getAttentionType()
Definition d_save.h:752
u8 unk4
Definition d_save.h:770
u8 getVibration()
Definition d_save.cpp:1063
void setAttentionType(u8 i_mAttentionType)
Definition d_save.h:753
Definition d_save.h:508
cXyz & getPos()
Definition d_save.h:520
s16 mAngleY
Definition d_save.h:527
BOOL isRegionBit(int i_region) const
Definition d_save.cpp:226
void init()
Definition d_save.cpp:191
void onRegionBit(int i_region)
Definition d_save.cpp:218
u8 mRegion
Definition d_save.h:532
char mName[8]
Definition d_save.h:528
char * getName()
Definition d_save.h:522
void offFieldDataExistFlag()
Definition d_save.h:518
bool mFieldDataExistFlag
Definition d_save.h:531
s16 getAngleY()
Definition d_save.h:523
bool isFieldDataExistFlag() const
Definition d_save.h:517
u8 mRegionNo
Definition d_save.h:530
u8 unk26[2]
Definition d_save.h:533
void onFieldDataExistFlag()
Definition d_save.h:519
cXyz mPos
Definition d_save.h:526
u8 mLastSpawnId
Definition d_save.h:529
dSv_player_field_last_stay_info_c()
Definition d_save.h:510
void set(const char *i_name, const cXyz &i_pos, s16 i_angle, s8 i_spawn, u8 i_regionNo)
Definition d_save.cpp:207
u8 getRegionNo() const
Definition d_save.h:521
Definition d_save.h:593
u32 mItemFlags[8]
Definition d_save.h:601
void offFirstBit(u8 i_itemNo)
Definition d_save.cpp:742
void onFirstBit(u8 i_itemNo)
Definition d_save.cpp:737
int isFirstBit(u8 i_itemNo) const
Definition d_save.cpp:747
void init()
Definition d_save.cpp:730
Definition d_save.h:713
u16 unk16
Definition d_save.h:733
u32 unk0
Definition d_save.h:730
u32 unk4
Definition d_save.h:731
s64 getTotalTime() const
Definition d_save.h:721
void setHorseName(const char *i_name)
Definition d_save.h:719
void setTotalTime(s64 i_time)
Definition d_save.h:720
u8 mClearCount
Definition d_save.h:739
char * getLinkName()
Definition d_save.h:716
char * getHorseName()
Definition d_save.h:717
u8 unk53
Definition d_save.h:738
char mHorseName[16]
Definition d_save.h:737
char mPlayerName[16]
Definition d_save.h:735
u8 unk36
Definition d_save.h:736
void init()
Definition d_save.cpp:1006
u16 mDeathCount
Definition d_save.h:734
void setPlayerName(const char *i_name)
Definition d_save.h:718
void addDeathCount()
Definition d_save.h:723
s64 mTotalTime
Definition d_save.h:732
u8 unk55[5]
Definition d_save.h:740
Definition d_save.h:561
void setRodTypeLevelUp()
Definition d_save.cpp:682
u8 mItemSlots[24]
Definition d_save.h:590
u8 checkBottle(u8 i_itemNo)
Definition d_save.cpp:458
void setEquipBottleItemEmpty(u8 curItemIn)
Definition d_save.cpp:453
u8 getItem(int i_slotNo, bool i_checkCombo) const
Definition d_save.cpp:281
void setBaitItem(u8 i_itemNo)
Definition d_save.cpp:705
void setBombBagItemIn(u8 i_curBomb, u8 i_newBomb, bool i_setNum)
Definition d_save.cpp:572
u8 checkEmptyBottle()
Definition d_save.cpp:559
u8 getLineUpItem(int i_slotNo) const
Definition d_save.cpp:376
void setEquipBottleItemIn(u8 curItemIn, u8 newItemIn)
Definition d_save.cpp:435
int checkInsectBottle()
Definition d_save.cpp:548
void setEmptyBottleItemIn(u8 i_itemNo)
Definition d_save.cpp:408
void setLineUpItem()
Definition d_save.cpp:354
void setBottleItemIn(u8 curItemIn, u8 newItemIn)
Definition d_save.cpp:385
u8 mItems[24]
Definition d_save.h:589
void setEmptyBombBagItemIn(u8 i_newBomb, bool i_setNum)
Definition d_save.cpp:617
void setEmptyBottle()
Definition d_save.cpp:414
void setEmptyBombBag()
Definition d_save.cpp:628
void setWarashibeItem(u8 i_itemNo)
Definition d_save.cpp:670
void setItem(int i_slotNo, u8 i_itemNo)
Definition d_save.cpp:266
u8 checkBombBag(u8 i_itemNo)
Definition d_save.cpp:658
void init()
Definition d_save.cpp:258
Definition d_save.h:626
u8 mItemMax[8]
Definition d_save.h:636
void setArrowNum(u8 i_maxNum)
Definition d_save.h:632
u8 getBombNum(u8 i_bombType) const
Definition d_save.cpp:840
void init()
Definition d_save.cpp:814
u8 getArrowNum() const
Definition d_save.h:633
void setBombNum(u8 i_bombType, u8 i_maxNum)
Definition d_save.cpp:825
Definition d_save.h:604
u8 mPachinkoNum
Definition d_save.h:622
u8 getPachinkoNum() const
Definition d_save.h:615
u8 mArrowNum
Definition d_save.h:619
void init()
Definition d_save.cpp:753
u8 addBottleNum(u8 i_bottleIdx, s16 i_num)
Definition d_save.cpp:791
u8 unk5[3]
Definition d_save.h:623
u8 getArrowNum() const
Definition d_save.h:613
u8 getBottleNum(u8 i_bottleIdx) const
Definition d_save.cpp:809
u8 mBottleNum[4]
Definition d_save.h:621
void setBombNum(u8 i_bagIdx, u8 i_bombNum)
Definition d_save.cpp:773
u8 getBombNum(u8 i_bagIdx) const
Definition d_save.cpp:779
u8 mBombNum[3]
Definition d_save.h:620
void setBottleNum(u8 i_bottleIdx, u8 i_bottleNum)
Definition d_save.cpp:785
void setPachinkoNum(u8 i_num)
Definition d_save.h:616
void setArrowNum(u8 i_num)
Definition d_save.h:614
Definition d_save.h:536
void resetWarpAcceptStage()
Definition d_save.h:548
s8 getRoomNo()
Definition d_save.h:546
dSv_player_last_mark_info_c()
Definition d_save.h:538
s8 mWarpAcceptStage
Definition d_save.h:557
s8 getWarpAcceptStage()
Definition d_save.h:547
cXyz mPos
Definition d_save.h:552
s8 mRoomNo
Definition d_save.h:556
const char * getName()
Definition d_save.h:543
s16 getAngleY()
Definition d_save.h:545
u8 mSpawnId
Definition d_save.h:555
char mName[8]
Definition d_save.h:554
void setWarpItemData(const char *i_name, const cXyz &i_pos, s16 i_angle, s8 i_roomNo, u8, u8)
Definition d_save.cpp:249
s16 mAngleY
Definition d_save.h:553
void init()
Definition d_save.cpp:234
cXyz & getPos()
Definition d_save.h:544
void setWarpAcceptStage(s8 accept)
Definition d_save.h:549
u8 unk25[3]
Definition d_save.h:558
Definition d_save.h:492
u8 unk11
Definition d_save.h:505
u8 getPlayerStatus() const
Definition d_save.h:497
char * getName()
Definition d_save.h:498
s8 mRoomNo
Definition d_save.h:503
void set(const char *i_name, s8 i_roomNo, u8 i_status)
Definition d_save.cpp:183
u8 mPlayerStatus
Definition d_save.h:502
char mName[8]
Definition d_save.h:501
s8 getRoomNo() const
Definition d_save.h:496
u8 unk10
Definition d_save.h:504
void init()
Definition d_save.cpp:174
Definition d_save.h:399
u16 getOil() const
Definition d_save.h:412
u8 unk10
Definition d_save.h:436
void setOil(u16 i_oil)
Definition d_save.h:419
u16 mOil
Definition d_save.h:435
u8 mTransformStatus
Definition d_save.h:447
u8 getTransformStatus() const
Definition d_save.h:417
u8 mMagicFlag
Definition d_save.h:445
void setSelectItemIndex(int i_no, u8 i_slotNo)
Definition d_save.cpp:65
u16 getRupeeMax() const
Definition d_save.cpp:98
void setMaxMagic(u8 i_maxMagic)
Definition d_save.h:423
u16 getLife() const
Definition d_save.h:410
u8 getMixItemIndex(int i_no) const
Definition d_save.cpp:90
void setMagic(u8 i_magic)
Definition d_save.h:422
void setMixItemIndex(int i_no, u8 i_slotNo)
Definition d_save.cpp:82
u8 mMixItem[MAX_SELECT_ITEM]
Definition d_save.h:439
u8 mMaxMagic
Definition d_save.h:443
u16 getRupee() const
Definition d_save.h:411
u16 mRupee
Definition d_save.h:433
u8 mMagic
Definition d_save.h:444
u8 unk29
Definition d_save.h:446
u8 mWalletSize
Definition d_save.h:442
void setTransformStatus(u8 i_status)
Definition d_save.h:428
u8 getSelectItemIndex(int i_no) const
Definition d_save.cpp:73
void setMaxOil(u16 i_maxOil)
Definition d_save.h:420
u16 mLife
Definition d_save.h:432
void setRupee(u16 i_rupees)
Definition d_save.h:424
u16 mMaxOil
Definition d_save.h:434
void setSelectEquip(int i_equipId, u8 i_itemNo)
Definition d_save.h:427
u8 getMagic() const
Definition d_save.h:414
u8 getMaxMagic() const
Definition d_save.h:415
u8 mSelectEquip[MAX_EQUIPMENT]
Definition d_save.h:441
void init()
Definition d_save.cpp:28
u16 getMaxLife() const
Definition d_save.h:409
u8 getWalletSize() const
Definition d_save.h:418
void setMaxLife(u8 i_maxLife)
Definition d_save.h:426
u8 getSelectEquip(int item) const
Definition d_save.h:416
u16 mMaxLife
Definition d_save.h:431
u8 mSelectItem[MAX_SELECT_ITEM]
Definition d_save.h:437
void setLife(u16 i_life)
Definition d_save.h:425
u8 unk31[3]
Definition d_save.h:448
int isMagicFlag(u8 i_magic) const
Definition d_save.cpp:113
void setWalletSize(u8 i_size)
Definition d_save.h:421
u16 getMaxOil() const
Definition d_save.h:413
Definition d_save.h:451
void onTransformLV(int i_no)
Definition d_save.cpp:146
void setDate(u16 i_date)
Definition d_save.h:462
u16 mDate
Definition d_save.h:473
OSTime mDateIpl
Definition d_save.h:467
u8 unk11
Definition d_save.h:471
void setTime(f32 i_time)
Definition d_save.h:463
void onDarkClearLV(int i_no)
Definition d_save.cpp:136
u16 getDate() const
Definition d_save.h:460
u8 unk18[3]
Definition d_save.h:474
u8 mTransformLevelFlag
Definition d_save.h:468
void setDateIpl(s64 i_time)
Definition d_save.h:459
f32 getTime() const
Definition d_save.h:461
OSTime getDateIpl() const
Definition d_save.h:464
f32 mTime
Definition d_save.h:472
BOOL isDarkClearLV(int i_no) const
Definition d_save.cpp:141
u8 mDarkClearLevelFlag
Definition d_save.h:469
u8 unk10
Definition d_save.h:470
void init()
Definition d_save.cpp:122
BOOL isTransformLV(int i_no) const
Definition d_save.cpp:151
Definition d_save.h:661
u8 unk0[3]
Definition d_save.h:666
void init()
Definition d_save.cpp:906
u8 unk3
Definition d_save.h:667
Definition d_save.h:1085
u8 unk[80]
Definition d_save.h:1088
Definition d_save.h:1017
f32 getLastSpeedF() const
Definition d_save.h:1036
cXyz mRoomPos
Definition d_save.h:1043
f32 mLastSpeedF
Definition d_save.h:1045
s16 getStartPoint() const
Definition d_save.h:1029
s16 getLastAngleY() const
Definition d_save.h:1035
cXyz & getRoomPos()
Definition d_save.h:1033
u32 mLastMode
Definition d_save.h:1046
void setStartPoint(s16 point)
Definition d_save.h:1022
u32 getRoomParam() const
Definition d_save.h:1032
s8 getRoomNo() const
Definition d_save.h:1031
s16 mRoomAngleY
Definition d_save.h:1042
void setRoom(const cXyz &i_position, s16 i_angleY, s8 i_roomNo)
Definition d_save.cpp:1423
u8 field_0x01[3]
Definition d_save.h:1040
s16 getRoomAngleY() const
Definition d_save.h:1034
u32 mRoomParam
Definition d_save.h:1044
s16 mLastAngleY
Definition d_save.h:1047
void setLastSceneInfo(f32 speed, u32 mode, s16 angle)
Definition d_save.h:1023
u32 getLastMode() const
Definition d_save.h:1030
s8 mRoomNo
Definition d_save.h:1039
void setRoomParam(u32 param)
Definition d_save.h:1021
s16 mStartPoint
Definition d_save.h:1041
Definition d_save.h:1091
dSv_player_c mPlayer
Definition d_save.h:1108
dSv_event_c & getEvent()
Definition d_save.h:1099
static const int STAGE2_MAX
Definition d_save.h:1105
void init()
Definition d_save.cpp:1447
dSv_reserve_c reserve
Definition d_save.h:1112
dSv_memory2_c mSave2[STAGE2_MAX]
Definition d_save.h:1110
dSv_memory2_c * getSave2(int i_stage2No)
Definition d_save.cpp:1462
dSv_event_c mEvent
Definition d_save.h:1111
dSv_MiniGame_c mMiniGame
Definition d_save.h:1113
dSv_memory_c mSave[STAGE_MAX]
Definition d_save.h:1109
dSv_save_c()
Definition d_save.h:1093
dSv_memory_c & getSave(int i_stageNo)
Definition d_save.h:1100
void putSave(int i_stageNo, dSv_memory_c mem)
Definition d_save.h:1102
static const int STAGE_MAX
Definition d_save.h:1104
dSv_MiniGame_c & getMiniGame()
Definition d_save.h:1101
dSv_player_c & getPlayer()
Definition d_save.h:1098
cXyz mCameraUp
Definition d_save.h:1056
cXyz mCameraCtr
Definition d_save.h:1054
cXyz mCameraEye
Definition d_save.h:1055
Definition d_save.h:1050
f32 getCameraFvy() const
Definition d_save.h:1065
void setCameraEye(const cXyz &i_eye)
Definition d_save.h:1073
void setCameraUp(const cXyz &i_up)
Definition d_save.h:1072
u32 mParam
Definition d_save.h:1078
dSv_turnRestart_camera_c mCamera
Definition d_save.h:1081
u32 getParam() const
Definition d_save.h:1061
void setCameraCtr(const cXyz &i_ctr)
Definition d_save.h:1074
const cXyz & getCameraCtr() const
Definition d_save.h:1070
s8 unk18
Definition d_save.h:1080
void setCameraFvy(f32 i_fvy)
Definition d_save.h:1066
const cXyz & getCameraEye() const
Definition d_save.h:1069
f32 mCameraFvy
Definition d_save.h:1082
s16 mAngleY
Definition d_save.h:1079
const cXyz & getCameraUp() const
Definition d_save.h:1068
s16 getAngleY() const
Definition d_save.h:1063
void set(const cXyz &i_position, s16 i_angleY, s8, u32 i_param)
Definition d_save.cpp:1430
cXyz mPosition
Definition d_save.h:1077
cXyz & getPos()
Definition d_save.h:1062
Definition d_save.h:982
void init()
Definition d_save.cpp:1394
u32 mActorFlags[4]
Definition d_save.h:992
void off(int i_id)
Definition d_save.cpp:1406
BOOL is(int i_id) const
Definition d_save.cpp:1411
void on(int i_id)
Definition d_save.cpp:1401
static const int ACTOR_MAX
Definition d_save.h:989
Definition d_save.h:956
void onOneSwitch(int i_no)
Definition d_save.cpp:1352
void init()
Definition d_save.cpp:1304
void clearRoomSwitch()
Definition d_save.cpp:1319
u16 unk12
Definition d_save.h:979
BOOL isOneItem(int i_no) const
Definition d_save.cpp:1389
BOOL isOneSwitch(int i_no) const
Definition d_save.cpp:1362
u16 mItem[2]
Definition d_save.h:977
u16 mRoomItem
Definition d_save.h:978
void clearRoomItem()
Definition d_save.cpp:1324
BOOL revSwitch(int i_no)
Definition d_save.cpp:1344
void onOneItem(int i_no)
Definition d_save.cpp:1384
void offSwitch(int i_no)
Definition d_save.cpp:1334
void onSwitch(int i_no)
Definition d_save.cpp:1329
BOOL isItem(int i_no) const
Definition d_save.cpp:1379
BOOL isSwitch(int i_no) const
Definition d_save.cpp:1339
u16 mRoomSwitch
Definition d_save.h:976
void offOneSwitch(int i_no)
Definition d_save.cpp:1357
BOOL revOneSwitch(int i_no)
Definition d_save.cpp:1367
u16 mSwitch[2]
Definition d_save.h:975
void onItem(int i_no)
Definition d_save.cpp:1374
Definition d_save.h:995
const dSv_zoneBit_c & getBit() const
Definition d_save.h:1001
void reset()
Definition d_save.h:1006
s8 & getRoomNo()
Definition d_save.h:1005
dSv_zoneActor_c mActor
Definition d_save.h:1012
dSv_zoneActor_c & getActor()
Definition d_save.h:1002
dSv_zoneBit_c & getBit()
Definition d_save.h:1000
dSv_zone_c()
Definition d_save.h:997
s8 mRoomNo
Definition d_save.h:1009
dSv_zoneBit_c mBit
Definition d_save.h:1011
const dSv_zoneActor_c & getActor() const
Definition d_save.h:1003
u8 unk1
Definition d_save.h:1010
static SECTION_RODATA u8 const id[8]
Definition d_a_npc_bans.cpp:1309
static u8 angle[2+2]
Definition d_a_obj_kago.cpp:845
void strcpy()
static initFunc init[]
Definition d_menu_collect.cpp:42
ItemTable
Definition d_save.h:76
@ CHUCHU_PURPLE
Definition d_save.h:201
@ F_STAG_BEETLE
Definition d_save.h:274
@ ANCIENT_DOCUMENT
Definition d_save.h:310
@ LV3_SOUP
Definition d_save.h:204
@ noentry4
Definition d_save.h:132
@ POU_SPIRIT
Definition d_save.h:301
@ WALLET_LV3
Definition d_save.h:131
@ OIL_BOTTLE
Definition d_save.h:179
@ KANTERA2
Definition d_save.h:325
@ M_ANT
Definition d_save.h:289
@ BOMB_30
Definition d_save.h:90
@ noentry34
Definition d_save.h:232
@ COPY_ROD_2
Definition d_save.h:153
@ noentry3
Definition d_save.h:98
@ F_BUTTERFLY
Definition d_save.h:272
@ noentry50
Definition d_save.h:266
@ LIGHT_SWORD
Definition d_save.h:150
@ BOMB_BAG_LV1
Definition d_save.h:157
@ noentry9
Definition d_save.h:137
@ ARROW_30
Definition d_save.h:93
@ OIL_BOTTLE3
Definition d_save.h:234
@ noentry35
Definition d_save.h:245
@ M_LADYBUG
Definition d_save.h:283
@ CHUCHU_GREEN
Definition d_save.h:199
@ SILVER_RUPEE
Definition d_save.h:84
@ WORM
Definition d_save.h:193
@ YELLOW_RUPEE
Definition d_save.h:80
@ noentry7
Definition d_save.h:135
@ noentry19
Definition d_save.h:215
@ noentry64
Definition d_save.h:305
@ EQUIP_SWORD
Definition d_save.h:336
@ PURPLE_RUPEE
Definition d_save.h:82
@ UTAWA_HEART
Definition d_save.h:111
@ noentry17
Definition d_save.h:213
@ BOMB_INSECT_30
Definition d_save.h:106
@ noentry69
Definition d_save.h:333
@ ARROW_LV1
Definition d_save.h:161
@ M_SNAIL
Definition d_save.h:285
@ LV5_BOSS_KEY
Definition d_save.h:323
@ FISHING_ROD_1
Definition d_save.h:151
@ RED_BOTTLE_2
Definition d_save.h:182
@ SHOP_BEE_CHILD
Definition d_save.h:235
@ HOT_SPRING
Definition d_save.h:184
@ LV1_SOUP
Definition d_save.h:202
@ BEE_CHILD
Definition d_save.h:195
@ WOOD_STATUE
Definition d_save.h:207
@ WOOD_STICK
Definition d_save.h:140
@ noentry12
Definition d_save.h:159
@ noentry22
Definition d_save.h:218
@ noentry72
Definition d_save.h:337
@ HEART
Definition d_save.h:77
@ POU_FIRE1
Definition d_save.h:316
@ WORM_ROD
Definition d_save.h:170
@ noentry68
Definition d_save.h:309
@ DUNGEON_EXIT_2
Definition d_save.h:128
@ DROP_BOTTLE
Definition d_save.h:194
@ F_MAYFLY
Definition d_save.h:292
@ KANTERA
Definition d_save.h:149
@ COMPUS
Definition d_save.h:113
@ JEWEL_BEE_ROD
Definition d_save.h:171
@ IRONBALL
Definition d_save.h:143
@ noentry53
Definition d_save.h:293
@ noentry41
Definition d_save.h:251
@ noentry70
Definition d_save.h:334
@ BOSSRIDER_KEY
Definition d_save.h:320
@ SMALL_KEY
Definition d_save.h:109
@ OIL_BOTTLE_2
Definition d_save.h:181
@ noentry74
Definition d_save.h:339
@ noentry45
Definition d_save.h:261
@ BOOMERANG
Definition d_save.h:141
@ BOMB_10
Definition d_save.h:88
@ noentry61
Definition d_save.h:302
@ noentry26
Definition d_save.h:224
@ FAIRY
Definition d_save.h:185
@ LV2_BOSS_KEY
Definition d_save.h:330
@ noentry29
Definition d_save.h:227
@ noentry49
Definition d_save.h:265
@ SWORD
Definition d_save.h:117
@ noentry1
Definition d_save.h:96
@ noentry39
Definition d_save.h:249
@ BOMB_5
Definition d_save.h:87
@ CHUCHU_YELLOW2
Definition d_save.h:233
@ MAP
Definition d_save.h:112
@ M_BEETLE
Definition d_save.h:269
@ L2_KEY_PIECES1
Definition d_save.h:326
@ ARROW_10
Definition d_save.h:91
@ noentry75
Definition d_save.h:340
@ F_SNAIL
Definition d_save.h:286
@ WALLET_LV1
Definition d_save.h:129
@ noentry76
Definition d_save.h:341
@ ASHS_SCRIBBLING
Definition d_save.h:222
@ noentry24
Definition d_save.h:220
@ noentry20
Definition d_save.h:216
@ CHUCHU_BLACK
Definition d_save.h:236
@ F_LADYBUG
Definition d_save.h:284
@ noentry57
Definition d_save.h:297
@ WATER_BOMB_5
Definition d_save.h:99
@ BOMB_BAG_LV2
Definition d_save.h:156
@ ARMOR
Definition d_save.h:125
@ noentry58
Definition d_save.h:298
@ FAIRY_DROP
Definition d_save.h:192
@ WATER_BOMB_10
Definition d_save.h:100
@ noentry23
Definition d_save.h:219
@ ZORAS_JEWEL
Definition d_save.h:138
@ HOT_SPRING_2
Definition d_save.h:186
@ noentry16
Definition d_save.h:212
@ noentry55
Definition d_save.h:295
@ noentry42
Definition d_save.h:252
@ noentry63
Definition d_save.h:304
@ WALLET_LV2
Definition d_save.h:130
@ L2_KEY_PIECES3
Definition d_save.h:328
@ LV2_SOUP
Definition d_save.h:203
@ IRIAS_PENDANT
Definition d_save.h:208
@ WEAR_KOKIRI
Definition d_save.h:124
@ BLUE_RUPEE
Definition d_save.h:79
@ TRIPLE_HEART
Definition d_save.h:108
@ LV7_DUNGEON_EXIT
Definition d_save.h:313
@ SPINNER
Definition d_save.h:142
@ ARROW_LV3
Definition d_save.h:163
@ OIL
Definition d_save.h:188
@ noentry47
Definition d_save.h:263
@ OIL2
Definition d_save.h:187
@ DUNGEON_BACK
Definition d_save.h:116
@ noentry37
Definition d_save.h:247
@ NORMAL_BOMB
Definition d_save.h:189
@ MIRROR_PIECE_4
Definition d_save.h:244
@ RAFRELS_MEMO
Definition d_save.h:221
@ noentry28
Definition d_save.h:226
@ F_BEETLE
Definition d_save.h:270
@ ARROW_LV2
Definition d_save.h:162
@ LIGHT_ARROW
Definition d_save.h:160
@ M_MANTIS
Definition d_save.h:281
@ noentry27
Definition d_save.h:225
@ noentry56
Definition d_save.h:296
@ HAWK_EYE
Definition d_save.h:139
@ L2_KEY_PIECES2
Definition d_save.h:327
@ noentry2
Definition d_save.h:97
@ BOMB_INSECT_20
Definition d_save.h:105
@ PACHINKO_SHOT
Definition d_save.h:95
@ noentry78
Definition d_save.h:343
@ HVY_BOOTS
Definition d_save.h:146
@ noentry25
Definition d_save.h:223
@ noentry33
Definition d_save.h:231
@ WATER_BOTTLE
Definition d_save.h:180
@ noentry8
Definition d_save.h:136
@ TASTE
Definition d_save.h:322
@ noentry14
Definition d_save.h:210
@ JEWEL_ROD
Definition d_save.h:169
@ noentry40
Definition d_save.h:250
@ DROP_CONTAINER03
Definition d_save.h:240
@ LIGHT_DROP
Definition d_save.h:237
@ TKS_LETTER
Definition d_save.h:122
@ BEE_ROD
Definition d_save.h:168
@ MASTER_SWORD
Definition d_save.h:118
@ noentry79
Definition d_save.h:344
@ EMPTY_BOTTLE
Definition d_save.h:173
@ noentry31
Definition d_save.h:229
@ RED_BOTTLE
Definition d_save.h:174
@ noentry38
Definition d_save.h:248
@ CHUCHU_RARE
Definition d_save.h:196
@ noentry46
Definition d_save.h:262
@ noentry6
Definition d_save.h:134
@ F_MANTIS
Definition d_save.h:282
@ M_DANGOMUSHI
Definition d_save.h:279
@ HALF_MILK_BOTTLE
Definition d_save.h:178
@ BOMB_20
Definition d_save.h:89
@ noentry18
Definition d_save.h:214
@ MIRROR_PIECE_3
Definition d_save.h:243
@ BOMB_INSECT_5
Definition d_save.h:103
@ noentry30
Definition d_save.h:228
@ noentry65
Definition d_save.h:306
@ POU_FIRE2
Definition d_save.h:317
@ SMELL_MEDICINE
Definition d_save.h:258
@ noentry15
Definition d_save.h:211
@ NO_ITEM
Definition d_save.h:332
@ MILK_BOTTLE
Definition d_save.h:177
@ BLUE_BOTTLE
Definition d_save.h:176
@ SMELL_PUMPKIN
Definition d_save.h:254
@ ARROW_20
Definition d_save.h:92
@ noentry71
Definition d_save.h:335
@ DUNGEON_EXIT
Definition d_save.h:114
@ BOMB_ARROW
Definition d_save.h:166
@ F_GRASSHOPPER
Definition d_save.h:276
@ W_HOOKSHOT
Definition d_save.h:148
@ CHUCHU_YELLOW
Definition d_save.h:200
@ POU_FIRE4
Definition d_save.h:319
@ noentry67
Definition d_save.h:308
@ LURE_ROD
Definition d_save.h:165
@ noentry48
Definition d_save.h:264
@ noentry62
Definition d_save.h:303
@ L_MAGIC
Definition d_save.h:86
@ GREEN_BOTTLE
Definition d_save.h:175
@ LETTER
Definition d_save.h:205
@ UGLY_SOUP
Definition d_save.h:183
@ M_GRASSHOPPER
Definition d_save.h:275
@ POKE_BOMB
Definition d_save.h:191
@ SMALL_KEY2
Definition d_save.h:315
@ HYLIA_SHIELD
Definition d_save.h:121
@ CHUCHU_RED
Definition d_save.h:197
@ noentry77
Definition d_save.h:342
@ noentry60
Definition d_save.h:300
@ LINKS_SAVINGS
Definition d_save.h:314
@ BILL
Definition d_save.h:206
@ M_MAYFLY
Definition d_save.h:291
@ noentry66
Definition d_save.h:307
@ noentry5
Definition d_save.h:133
@ MIRROR_PIECE_2
Definition d_save.h:242
@ HORSE_FLUTE
Definition d_save.h:209
@ noentry13
Definition d_save.h:164
@ SMELL_FISH
Definition d_save.h:256
@ M_BUTTERFLY
Definition d_save.h:271
@ PACHINKO
Definition d_save.h:152
@ CHUCHU_BLUE
Definition d_save.h:198
@ noentry54
Definition d_save.h:294
@ WEAR_CASUAL
Definition d_save.h:123
@ FILLED_CONTAINER
Definition d_save.h:241
@ noentry43
Definition d_save.h:259
@ noentry52
Definition d_save.h:268
@ BOMB_INSECT_10
Definition d_save.h:104
@ noentry44
Definition d_save.h:260
@ ANCIENT_DOCUMENT2
Definition d_save.h:312
@ DROP_CONTAINER
Definition d_save.h:238
@ F_DANGOMUSHI
Definition d_save.h:280
@ WATER_BOMB_20
Definition d_save.h:101
@ HAWK_ARROW
Definition d_save.h:167
@ GREEN_RUPEE
Definition d_save.h:78
@ SMELL_YELIA_POUCH
Definition d_save.h:253
@ DROP_CONTAINER02
Definition d_save.h:239
@ RECOVERY_FAILY
Definition d_save.h:107
@ noentry32
Definition d_save.h:230
@ noentry59
Definition d_save.h:299
@ M_STAG_BEETLE
Definition d_save.h:273
@ noentry51
Definition d_save.h:267
@ KAKERA_HEART
Definition d_save.h:110
@ S_MAGIC
Definition d_save.h:85
@ ORANGE_RUPEE
Definition d_save.h:83
@ TOMATO_PUREE
Definition d_save.h:321
@ WATER_BOMB
Definition d_save.h:190
@ WOOD_SHIELD
Definition d_save.h:119
@ BOSS_KEY
Definition d_save.h:115
@ BOW
Definition d_save.h:144
@ JEWEL_WORM_ROD
Definition d_save.h:172
@ AIR_LETTER
Definition d_save.h:311
@ noentry73
Definition d_save.h:338
@ SURFBOARD
Definition d_save.h:324
@ SMELL_CHILDREN
Definition d_save.h:257
@ KEY_OF_CARAVAN
Definition d_save.h:329
@ noentry36
Definition d_save.h:246
@ WATER_BOMB_30
Definition d_save.h:102
@ COPY_ROD
Definition d_save.h:147
@ POU_FIRE3
Definition d_save.h:318
@ BOMB_IN_BAG
Definition d_save.h:158
@ M_DRAGONFLY
Definition d_save.h:287
@ SMELL_POH
Definition d_save.h:255
@ RED_RUPEE
Definition d_save.h:81
@ ARROW_1
Definition d_save.h:94
@ noentry21
Definition d_save.h:217
@ noentry10
Definition d_save.h:154
@ KEY_OF_FILONE
Definition d_save.h:331
@ noentry11
Definition d_save.h:155
@ MAGIC_LV1
Definition d_save.h:127
@ F_DRAGONFLY
Definition d_save.h:288
@ HOOKSHOT
Definition d_save.h:145
@ F_NANAFUSHI
Definition d_save.h:278
@ M_NANAFUSHI
Definition d_save.h:277
@ WEAR_ZORA
Definition d_save.h:126
@ F_ANT
Definition d_save.h:290
@ SHIELD
Definition d_save.h:120
Shields
Definition d_save.h:362
@ COLLECT_HYLIAN_SHIELD
Definition d_save.h:365
@ COLLECT_ORDON_SHIELD
Definition d_save.h:364
@ COLLECT_WOODEN_SHIELD
Definition d_save.h:363
Swords
Definition d_save.h:355
@ COLLECT_WOODEN_SWORD
Definition d_save.h:358
@ COLLECT_MASTER_SWORD
Definition d_save.h:357
@ COLLECT_LIGHT_SWORD
Definition d_save.h:359
@ COLLECT_ORDON_SWORD
Definition d_save.h:356
@ TF_STATUS_HUMAN
Definition d_save.h:395
@ TF_STATUS_WOLF
Definition d_save.h:396
Wallets
Definition d_save.h:43
@ GIANT_WALLET
Definition d_save.h:46
@ WALLET
Definition d_save.h:44
@ BIG_WALLET
Definition d_save.h:45
STATIC_ASSERT(sizeof(dSv_memory_c)==0x20)
CollectItem
Definition d_save.h:347
@ COLLECT_SHIELD
Definition d_save.h:350
@ COLLECT_CLOTHING
Definition d_save.h:348
@ COLLECT_SWORD
Definition d_save.h:349
@ COLLECT_SMELL
Definition d_save.h:351
@ B_BUTTON_ITEM
Definition d_save.h:352
@ SELECT_ITEM_RIGHT
Definition d_save.h:387
@ SELECT_ITEM_B
Definition d_save.h:389
@ SELECT_ITEM_X
Definition d_save.h:390
@ SELECT_ITEM_LEFT
Definition d_save.h:386
@ SELECT_ITEM_Y
Definition d_save.h:391
@ SELECT_ITEM_DOWN
Definition d_save.h:388
Clothes
Definition d_save.h:368
@ KOKIRI_CLOTHES_FLAG
Definition d_save.h:369
ItemSlots
Definition d_save.h:49
@ SLOT_19
Definition d_save.h:69
@ SLOT_7
Definition d_save.h:57
@ SLOT_16
Definition d_save.h:66
@ SLOT_12
Definition d_save.h:62
@ SLOT_21
Definition d_save.h:71
@ SLOT_10
Definition d_save.h:60
@ SLOT_14
Definition d_save.h:64
@ SLOT_4
Definition d_save.h:54
@ SLOT_11
Definition d_save.h:61
@ SLOT_23
Definition d_save.h:73
@ SLOT_13
Definition d_save.h:63
@ SLOT_5
Definition d_save.h:55
@ SLOT_0
Definition d_save.h:50
@ SLOT_9
Definition d_save.h:59
@ SLOT_8
Definition d_save.h:58
@ SLOT_17
Definition d_save.h:67
@ SLOT_20
Definition d_save.h:70
@ SLOT_3
Definition d_save.h:53
@ SLOT_2
Definition d_save.h:52
@ SLOT_15
Definition d_save.h:65
@ SLOT_18
Definition d_save.h:68
@ SLOT_1
Definition d_save.h:51
@ SLOT_6
Definition d_save.h:56
@ SLOT_22
Definition d_save.h:72
ItemMax
Definition d_save.h:378
@ ARROW_MAX
Definition d_save.h:379
@ WATER_BOMB_MAX
Definition d_save.h:381
@ POKE_BOMB_MAX
Definition d_save.h:382
@ NORMAL_BOMB_MAX
Definition d_save.h:380
ButtonIndexes
Definition d_save.h:38
@ B_BUTTON
Definition d_save.h:40
@ A_BUTTON
Definition d_save.h:39
LightDropStages
Definition d_save.h:372
@ ELDIN_VESSEL
Definition d_save.h:374
@ LANAYRU_VESSEL
Definition d_save.h:375
@ FARON_VESSEL
Definition d_save.h:373
Definition d_a_hozelda.cpp:20
Definition d_a_ep.cpp:43
u8 field_0xf14[4]
Definition d_save.h:1181
void removeZone(int zoneNo)
Definition d_save.h:1155
u8 field_0xf1b[13]
Definition d_save.h:1185
s64 getSaveTotalTime() const
Definition d_save.h:1148
u32 createZone(int i_roomNo)
Definition d_save.cpp:1484
dSv_danBit_c & getDan()
Definition d_save.h:1145
BOOL isActor(int i_no, int i_roomNo) const
Definition d_save.cpp:1642
dSv_event_c & getTmp()
Definition d_save.h:1141
dSv_save_c & getSavedata()
Definition d_save.h:1136
u8 getDataNum() const
Definition d_save.h:1153
s64 mStartTime
Definition d_save.h:1186
dSv_zone_c mZone[ZONE_MAX]
Definition d_save.h:1177
int initdata_to_card(char *card_ptr, int dataNum)
Definition d_save.cpp:1775
dSv_player_c & getPlayer()
Definition d_save.h:1140
BOOL revSwitch(int i_no, int i_roomNo)
Definition d_save.cpp:1561
void setDataNum(u8 num)
Definition d_save.h:1154
static const int ONEZONE_ITEM
Definition d_save.h:1169
dSv_event_c & getEvent()
Definition d_save.h:1144
static const int DAN_ITEM
Definition d_save.h:1167
dSv_restart_c mRestart
Definition d_save.h:1178
BOOL isSwitch(int i_no, int i_roomNo) const
void setSaveTotalTime(s64 time)
Definition d_save.h:1150
dSv_memory_c mMemory
Definition d_save.h:1175
void onActor(int i_no, int i_roomNo)
Definition d_save.cpp:1622
dSv_save_c mSavedata
Definition d_save.h:1174
dSv_restart_c & getRestart()
Definition d_save.h:1142
BOOL isItem(int i_no, int i_roomNo) const
Definition d_save.cpp:1602
u8 getNoFile() const
Definition d_save.h:1156
void setNewFile(u8 file)
Definition d_save.h:1159
int memory_to_card(char *card_ptr, int dataNum)
Definition d_save.cpp:1653
s64 getStartTime() const
Definition d_save.h:1147
void initZone()
Definition d_save.cpp:1477
dSv_MiniGame_c & getMiniGame()
Definition d_save.h:1146
void setNoFile(u8 file)
Definition d_save.h:1157
dSv_turnRestart_c mTurnRestart
Definition d_save.h:1180
dSv_event_c mTmp
Definition d_save.h:1179
void getSave(int i_stageNo)
Definition d_save.cpp:1467
dSv_memory_c & getMemory()
Definition d_save.h:1137
void resetDan()
Definition d_save.h:1152
int card_to_memory(char *card_ptr, int dataNum)
Definition d_save.cpp:1731
static const int ZONE_SWITCH
Definition d_save.h:1163
u8 mNoFile
Definition d_save.h:1184
dSv_danBit_c mDan
Definition d_save.h:1176
void onItem(int i_no, int i_roomNo)
Definition d_save.cpp:1582
dSv_zone_c & getZone(int id)
Definition d_save.h:1139
dSv_zone_c * getZones()
Definition d_save.h:1138
u8 mDataNum
Definition d_save.h:1182
void setStartTime(s64 time)
Definition d_save.h:1149
static const int ONEZONE_SWITCH
Definition d_save.h:1164
static const int ZONE_ITEM
Definition d_save.h:1168
s64 mSaveTotalTime
Definition d_save.h:1187
void onSwitch(int i_no, int i_roomNo)
u8 getNewFile() const
Definition d_save.h:1158
void offSwitch(int i_no, int i_roomNo)
static const int ZONE_MAX
Definition d_save.h:1171
void init()
Definition d_save.cpp:1438
void putSave(int i_stageNo)
Definition d_save.cpp:1472
static const int MEMORY_ITEM
Definition d_save.h:1166
void initDan(s8 i_stage)
Definition d_save.h:1151
void offActor(int i_no, int i_roomNo)
Definition d_save.cpp:1632
static const int DAN_SWITCH
Definition d_save.h:1162
static const int MEMORY_SWITCH
Definition d_save.h:1161
u8 mNewFile
Definition d_save.h:1183
dSv_turnRestart_c & getTurnRestart()
Definition d_save.h:1143
Definition d_menu_dmap_map.cpp:96
@ OOCCOO_NOTE
Definition d_save.h:831
@ STAGE_BOSS_DEMO
Definition d_save.h:830
@ STAGE_BOSS_ENEMY_2
Definition d_save.h:832
@ STAGE_BOSS_ENEMY
Definition d_save.h:828
@ MAP
Definition d_save.h:825
@ STAGE_LIFE
Definition d_save.h:829
@ COMPASS
Definition d_save.h:826
@ BOSS_KEY
Definition d_save.h:827
void offSwitch(int i_no)
Definition d_save.cpp:1129
void onStageBossEnemy2()
Definition d_save.h:861
u8 mKeyNum
Definition d_save.h:872
void onStageLife()
Definition d_save.h:866
void isDungeonItem(int) const
Definition d_save.cpp:1163
void onDungeonItem(int i_no)
Definition d_save.cpp:1158
s32 isDungeonItem(int i_no) const
s32 isStageBossEnemy() const
Definition d_save.h:862
void setKeyNum(u8 i_keyNum)
Definition d_save.h:849
u8 mDungeonItem
Definition d_save.h:873
void onStageBossEnemy()
Definition d_save.h:857
s32 isDungeonItemMap() const
Definition d_save.h:851
u32 mTbox[2]
Definition d_save.h:869
BOOL revSwitch(int i_no)
Definition d_save.cpp:1139
s32 isStageLife() const
Definition d_save.h:864
void onItem(int i_no)
Definition d_save.cpp:1147
s32 isDungeonItemCompass() const
Definition d_save.h:853
void onDungeonItemCompass()
Definition d_save.h:852
u8 getKeyNum()
Definition d_save.h:848
BOOL isSwitch(int i_no) const
Definition d_save.cpp:1134
s32 isStageBossEnemy2() const
Definition d_save.h:863
BOOL isItem(int i_no) const
Definition d_save.cpp:1152
BOOL isTbox(int i_no) const
void onTbox(int i_no)
Definition d_save.cpp:1109
s32 isDungeonItemWarp() const
Definition d_save.h:865
void onDungeonItemBossKey()
Definition d_save.h:855
void onSwitch(int i_no)
Definition d_save.cpp:1124
s32 isDungeonItemBossKey() const
Definition d_save.h:856
void offTbox(int i_no)
Definition d_save.cpp:1114
u32 mItem[1]
Definition d_save.h:871
void onDungeonItemMap()
Definition d_save.h:850
void onDungeonItemWarp()
Definition d_save.h:854
u32 mSwitch[4]
Definition d_save.h:870
void init()
Definition d_save.cpp:1094
int BOOL
Definition types.h:27
signed char s8
Definition types.h:4
unsigned long u32
Definition types.h:10
signed long long s64
Definition types.h:7
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8