Skip to content

Commit

Permalink
Merge pull request #120 from Kelebek1/fragment11
Browse files Browse the repository at this point in the history
fragment11
  • Loading branch information
RevoSucks committed Sep 5, 2024
2 parents 66493ea + 195f75c commit 039a205
Show file tree
Hide file tree
Showing 13 changed files with 2,343 additions and 78 deletions.
26 changes: 21 additions & 5 deletions include/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,24 @@ typedef struct unk_D_86002F58_004_000 {
/* 0x044 */ unk_D_86002F58_004_000_044* unk_044;
/* 0x048 */ s32 unk_048;
/* 0x04C */ u32 unk_04C;
/* 0x050 */ char pad50[2];
/* 0x050 */ char pad050[2];
/* 0x052 */ s16 unk_052;
/* 0x054 */ s16 unk_054;
/* 0x058 */ s32 unk_058;
/* 0x05C */ s16 unk_05C;
/* 0x05E */ s16 unk_05E;
/* 0x060 */ s32 unk_060;
/* 0x064 */ char pad64[0x3C];
/* 0x064 */ char pad064[0x3C];
/* 0x0A0 */ s32 unk_0A0;
/* 0x0A4 */ char padA4[2];
/* 0x0A4 */ char pad0A4[2];
/* 0x0A6 */ s8 unk_0A6;
/* 0x0A7 */ char padA7[5];
/* 0x0A7 */ char pad0A7[5];
/* 0x0AC */ Vec3f unk_0AC;
/* 0x0B8 */ char padB8[0xB0];
/* 0x0B8 */ char pad0B8[0x24];
/* 0x0DC */ Vec3f unk_0DC;
/* 0x0E0 */ char pad0E0[0x4];
/* 0x0EC */ Vec3f unk_0EC;
/* 0x0F8 */ char pad0F8[0x70];
} unk_D_86002F58_004_000; // size = 0x168

typedef struct unk_D_86002F34_00C {
Expand Down Expand Up @@ -133,4 +137,16 @@ struct UnkStruct800AA660 {
/* 0x2204 */ struct UnkInputStruct8000D738 unk2204;
};

typedef struct unk_D_864027C0 {
/* 0x00 */ f32 unk_00;
/* 0x04 */ f32 unk_04;
/* 0x08 */ f32 unk_08;
/* 0x0C */ f32 unk_0C;
/* 0x10 */ f32 unk_10;
/* 0x14 */ f32 unk_14;
/* 0x18 */ s16 unk_18;
/* 0x1A */ s16 unk_1A;
/* 0x1C */ s16 unk_1C;
} unk_D_864027C0; // size = 0x20

#endif
7 changes: 4 additions & 3 deletions include/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
#define HW_REG(reg, type) *(volatile type*)((reg) | 0xA0000000)
#endif

#define assert

#define ARRAY_COUNT(arr) (s32)(sizeof(arr) / sizeof(arr[0]))

#define SQ(x) ((x) * (x))
#define ROUND(x) (s32)(((x) >= 0.0) ? ((x) + 0.5) : ((x) - 0.5))

#define assert

// cast thru uintptr_t for integer to pointer casts
#define INT2VOID(i) ((void *)(uintptr_t)(i))
Expand All @@ -46,6 +45,8 @@
#define CLAMP_MAX(x, max) ((x) > (max) ? (max) : (x))
#define CLAMP_MIN(x, min) ((x) < (min) ? (min) : (x))

#define ROUND_MAX(x) (((x) > 0.0f ? 0.5f : -0.5f) + (x))

#define ABS(x) ((x) >= 0 ? (x) : -(x))
#define ABS_ALT(x) ((x) < 0 ? -(x) : (x))

Expand Down
2 changes: 1 addition & 1 deletion src/18140.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

void func_80017788(unk_D_86002F58_004_000*);
void func_80017798(unk_D_86002F58_004_000*, s16, s32, s32);
void func_80017804(unk_D_86002F58_004_000*, s32);
void func_80017804(unk_D_86002F58_004_000*, s16);

#endif // _18140_H_
12 changes: 0 additions & 12 deletions src/fragments/10/fragment10.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@
#include "src/stage_loader.h"
#include "src/controller.h"

typedef struct unk_D_864027C0 {
/* 0x00 */ f32 unk_00;
/* 0x04 */ f32 unk_04;
/* 0x08 */ f32 unk_08;
/* 0x0C */ f32 unk_0C;
/* 0x10 */ f32 unk_10;
/* 0x14 */ f32 unk_14;
/* 0x18 */ s16 unk_18;
/* 0x1A */ s16 unk_1A;
/* 0x1C */ s16 unk_1C;
} unk_D_864027C0; // size = 0x20

static unk_D_864027C0 D_864027C0[] = {
{ -68.0f, 0.0f, 68.0f, 1.0f, 1.0f, 1.0f, 0, 0x5E80, 0 },
{ -68.0f, 0.0f, -68.0f, 1.0f, 1.0f, 1.0f, 0, 0x1F80, 0 },
Expand Down
Loading

0 comments on commit 039a205

Please sign in to comment.