summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-04-10 20:27:22 +0300
committerTal Hayon <talhayon1@gmail.com>2022-04-10 20:27:22 +0300
commitc06564fd55219f9129c228d23f09933d39b33cc2 (patch)
treeb10bb03efb05c1e42a4f93a88dda62575e109c96 /include
parente50351df20adf608771d91bfe6aa736b094e75a8 (diff)
Decompile Subtask_FadeIn/Out
Diffstat (limited to 'include')
-rw-r--r--include/entity.h2
-rw-r--r--include/main.h39
-rw-r--r--include/room.h2
3 files changed, 29 insertions, 14 deletions
diff --git a/include/entity.h b/include/entity.h
index 618bb701..30bc9a75 100644
--- a/include/entity.h
+++ b/include/entity.h
@@ -485,6 +485,8 @@ void SetInitializationPriority(void);
*/
void ResetSystemPriority(void);
+void sub_0805E958(void);
+
/**
* LinkedList's which point to allocate Entities.
* These work together with Entity.prev and Entity.next fields
diff --git a/include/main.h b/include/main.h
index 0a2c97bf..134ca8e0 100644
--- a/include/main.h
+++ b/include/main.h
@@ -2,7 +2,9 @@
#define MAIN_H
#include "global.h"
-#include "room.h" // just to get the type of screenTransitionData
+#include "structures.h"
+#include "room.h"
+#include "script.h"
/** File signature */
#define SIGNATURE 'MCZ3'
@@ -69,19 +71,28 @@ typedef struct {
* HUD structure.
*/
typedef struct {
- /*0x00*/ u8 nextToLoad;
- /*0x01*/ u8 _1;
- /*0x02*/ u8 lastState;
- /*0x03*/ u8 field_0x3;
- /*0x04*/ u8 state;
- /*0x05*/ u8 field_0x5;
- /*0x06*/ u8 field_0x6;
- /*0x07*/ u8 pauseFadeIn;
- /*0x08*/ u16 isLoading;
- /*0x0A*/ u16 fadeInTime;
- /*0x0C*/ u8 fillerC[0x10];
- /*0x1c*/ RoomControls unk_1c;
- /*0x2e+4*/ u8 unk_2e[0x360];
+ /*0x000*/ u8 nextToLoad;
+ /*0x001*/ u8 _1;
+ /*0x002*/ u8 lastState;
+ /*0x003*/ u8 field_0x3;
+ /*0x004*/ u8 state;
+ /*0x005*/ u8 field_0x5;
+ /*0x006*/ u8 field_0x6;
+ /*0x007*/ u8 pauseFadeIn;
+ /*0x008*/ u16 fadeType;
+ /*0x00A*/ u16 fadeInTime;
+ /*0x00C*/ u8 controlMode;
+ /*0x00D*/ u8 unk_d;
+ /*0x00E*/ u8 unk_e;
+ /*0x00F*/ u8 unk_f;
+ /*0x010*/ void** currentRoomProperties;
+ /*0x014*/ u16* mapBottomBgControlPtr;
+ /*0x018*/ u16* mapTopBgControlPtr;
+ /*0x01C*/ RoomControls roomControls;
+ /*0x054*/ GfxSlotList gfxSlotList;
+ /*0x268*/ Palette palettes[0x10];
+ /*0x2A8*/ u8 unk_2a8[0x100];
+ /*0x3A8*/ ActiveScriptInfo activeScriptInfo;
} UI;
static_assert(sizeof(UI) == 0x3b4);
diff --git a/include/room.h b/include/room.h
index f4663028..747379b6 100644
--- a/include/room.h
+++ b/include/room.h
@@ -216,6 +216,8 @@ typedef enum {
TILE_ENTITY_D,
} TileEntityType;
+extern void** gCurrentRoomProperties;
+
void SetTileType(u32, u32, u32);
void InitScreenShake(u32 time, u32 magnitude);