summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h45
1 files changed, 42 insertions, 3 deletions
diff --git a/include/global.h b/include/global.h
index b50aa7d2f..68ec7c6ca 100644
--- a/include/global.h
+++ b/include/global.h
@@ -46,6 +46,18 @@ enum
OPTIONS_TEXT_SPEED_FAST
};
+enum
+{
+ OPTIONS_SOUND_MONO,
+ OPTIONS_SOUND_STEREO
+};
+
+enum
+{
+ OPTIONS_BATTLE_STYLE_SHIFT,
+ OPTIONS_BATTLE_STYLE_SET
+};
+
struct Coords16
{
s16 x;
@@ -102,6 +114,11 @@ struct RamScript
struct RamScriptData data;
};
+struct SB1_2EFC_Struct
+{
+ u8 unknown[0x20];
+};
+
struct SaveBlock1
{
struct Coords16 pos;
@@ -109,7 +126,10 @@ struct SaveBlock1
u8 filler_C[0x484];
u32 money;
u16 coins;
- u8 filler_496[0x31FA];
+ u16 registeredItem; // registered for use with SELECT button
+ u8 filler_498[0x2A64];
+ struct SB1_2EFC_Struct sb1_2EFC_struct[5];
+ u8 filler_2F9C[0x6F4];
struct RamScript ramScript;
u8 filler_3A7C[0x44];
};
@@ -124,6 +144,19 @@ struct Time
s8 seconds;
};
+struct Pokedex
+{
+ u8 order;
+ u8 unknown1;
+ u8 nationalMagic; // must equal 0xDA in order to have National mode
+ u8 unknown2;
+ u32 unownPersonality; // set when you first see Unown
+ u32 spindaPersonality; // set when you first see Spinda
+ u32 unknown3;
+ u8 owned[52];
+ u8 seen[52];
+};
+
struct SaveBlock2
{
u8 playerName[8];
@@ -137,9 +170,15 @@ struct SaveBlock2
u8 optionsButtonMode; // OPTIONS_BUTTON_MODE_[NORMAL/LR/L_EQUALS_A]
u8 optionsTextSpeed:3; // OPTIONS_TEXT_SPEED_[SLOW/MID/FAST]
u8 optionsWindowFrameType:5; // Specifies one of the 20 decorative borders for text boxes
- u8 filler_15[0x83];
+ u8 optionsSound:1; // OPTIONS_SOUND_[MONO/STEREO]
+ u8 optionsBattleStyle:1; // OPTIONS_BATTLE_STYLE_[SHIFT/SET]
+ u8 optionsBattleSceneOff:1; // whether battle animations are disabled
+ u8 regionMapZoom:1; // whether the map is zoomed in
+ struct Pokedex pokedex;
+ u8 filler_90[0x8];
struct Time localTimeOffset;
- u8 filler_A0[0x7F0];
+ struct Time lastBerryTreeUpdate;
+ u8 filler_A8[0x7E8];
};
extern struct SaveBlock2 gSaveBlock2;