summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornotyourav <65437533+notyourav@users.noreply.github.com>2022-04-10 23:52:32 -0700
committerGitHub <noreply@github.com>2022-04-10 23:52:32 -0700
commit02cec8ca8d9b8f7373286fcd1c4c88c42beeeeb1 (patch)
tree90b9436c8e2efd488dfd0bdda49fbf770187ce4e /include
parentef41e97c78869eadc4d79244537c49ecbae61841 (diff)
parentc06564fd55219f9129c228d23f09933d39b33cc2 (diff)
Merge pull request #490 from hatal175/subtask5
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);