mirror of
https://github.com/zeldaret/tmc
synced 2026-07-10 07:06:52 -04:00
function renaming
This commit is contained in:
+14
-7
@@ -24,6 +24,13 @@ union SplitWord {
|
||||
} HALF;
|
||||
};
|
||||
|
||||
union SplitHWord {
|
||||
u16 HWORD;
|
||||
struct {
|
||||
u8 LO, HI;
|
||||
} PACKED HALF;
|
||||
};
|
||||
|
||||
typedef struct Entity
|
||||
{
|
||||
u32 *field_0x0;
|
||||
@@ -51,20 +58,20 @@ typedef struct Entity
|
||||
u8 ss5:1;
|
||||
u8 ss6:1;
|
||||
u8 ss7:1;
|
||||
} __attribute__((packed)) b;
|
||||
} __attribute__((packed)) spriteSettings;
|
||||
} PACKED b;
|
||||
} PACKED spriteSettings;
|
||||
|
||||
struct {
|
||||
u8 b0:2;
|
||||
u8 b1:2;
|
||||
u8 b2:4;
|
||||
} __attribute__((packed)) spriteOrder;
|
||||
} PACKED spriteOrder;
|
||||
u8 palette;
|
||||
struct {
|
||||
u8 b0:4;
|
||||
u8 b1:1;
|
||||
u8 b2:3;
|
||||
} __attribute__((packed)) spriteOrientation;
|
||||
} PACKED spriteOrientation;
|
||||
u8 filler[2];
|
||||
u8 animationList;
|
||||
u8 field_1f;
|
||||
@@ -74,7 +81,7 @@ typedef struct Entity
|
||||
struct {
|
||||
u8 b0:3;
|
||||
u8 b1:5;
|
||||
} __attribute__((packed)) ticks;
|
||||
} PACKED ticks;
|
||||
u16 collisions;
|
||||
union SplitWord x;
|
||||
union SplitWord y;
|
||||
@@ -108,7 +115,7 @@ typedef struct Entity
|
||||
u8 f0:6;
|
||||
u8 f1:1;
|
||||
u8 f2:1;
|
||||
} __attribute__((packed)) frames;
|
||||
} PACKED frames;
|
||||
u8 gfx;
|
||||
u8 field_0x5c;
|
||||
u8 field_0x5d;
|
||||
@@ -126,7 +133,7 @@ typedef struct Entity
|
||||
u16 itemCooldown;
|
||||
u32 field_0x7c;
|
||||
u32 field_0x80;
|
||||
u16 cutsceneBeh;
|
||||
union SplitHWord cutsceneBeh;
|
||||
u16 field_0x86;
|
||||
|
||||
} Entity;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#define NAKED __attribute__((naked))
|
||||
#define UNUSED __attribute__((unused))
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
#define ALIGNED(n) __attribute__((aligned(n)))
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define GREATFAIRY_H
|
||||
|
||||
extern u32 __modsi3(u32, u32);
|
||||
extern void UpdateSprite(Entity *, u32);
|
||||
extern void InitializeAnimation(Entity *, u32);
|
||||
extern void sub_08087380();
|
||||
extern u32 CheckRoomFlag();
|
||||
extern Entity *sub_080873AC(Entity*, u32, u32);
|
||||
|
||||
Reference in New Issue
Block a user