SSBM Decomp
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef MELEE_UN_TYPES_H
2#define MELEE_UN_TYPES_H
3
4#include <platform.h>
5
6#include "baselib/forward.h"
7#include "un/forward.h" // IWYU pragma: export
8
9#include <dolphin/gx.h>
10
11#define DEVTEXT_FLAG_HIDETEXT (0x80)
12#define DEVTEXT_FLAG_HIDEBACKGROUND (0x40)
13#define DEVTEXT_FLAG_NOWRAP (0x20)
14#define DEVTEXT_FLAG_SHOWCURSOR (0x10)
15
16struct DevText {
17 /* +0 */ s16 x;
18 /* +2 */ s16 y;
19 /* +4 */ u8 w;
20 /* +5 */ u8 h;
21 /* +6 */ u8 cursor_x;
22 /* +7 */ u8 cursor_y;
23 /* +8 */ f32 scale_x;
24 /* +C */ f32 scale_y;
25 /* +10 */ GXColor bg_color;
26 /* +14 */ GXColor text_colors[4];
27 /* +24 */ s8 id;
28 /* +25 */ u8 line_width;
29 /* +26 */ u8 flags;
30 /* +27 */ u8 unk : 6;
31 /* +27 */ u8 current_color : 2;
32 /* +28 */ char* buf;
33 /* +2C */ struct DevText* prev;
34 /* +30 */ struct DevText* next;
35};
36
38 /* +0 */ char pad_0[0x18];
39 /* +14 */ HSD_JObj* x14;
40 /* +18 */ HSD_JObj* x18;
41 /* +1C */ char pad_1C[0x50 - 0x20];
42 /* +50 */ HSD_Archive* archive;
43 /* +54 */ short x54;
44 /* +56 */ short x56;
45};
46
48 int x0;
49 int (*x4)(int);
50 char* x8;
51 char** xC;
52 void* x10;
53 float x14;
54 float x18;
55 float x1C;
56};
58
70STATIC_ASSERT(sizeof(struct un_80304138_objalloc_t) == 0x20);
71
72#endif
#define STATIC_ASSERT(cond)
Definition platform.h:110
Definition types.h:16
u8 current_color
Definition types.h:31
u8 w
Definition types.h:19
char * buf
Definition types.h:32
u8 flags
Definition types.h:29
s16 y
Definition types.h:18
s16 x
Definition types.h:17
u8 unk
Definition types.h:30
s8 id
Definition types.h:27
GXColor bg_color
Definition types.h:25
u8 line_width
Definition types.h:28
u8 cursor_x
Definition types.h:21
GXColor text_colors[4]
Definition types.h:26
f32 scale_y
Definition types.h:24
struct DevText * prev
Definition types.h:33
f32 scale_x
Definition types.h:23
u8 cursor_y
Definition types.h:22
struct DevText * next
Definition types.h:34
u8 h
Definition types.h:20
Definition archive.h:34
Definition gobjproc.h:8
was using this to try and fix some matches, unsuccessfully
Definition gobj.h:26
Definition jobj.h:106
Definition types.h:47
int x0
Definition types.h:48
int(* x4)(int)
Definition types.h:49
char * x8
Definition types.h:50
float x1C
Definition types.h:55
float x18
Definition types.h:54
float x14
Definition types.h:53
char ** xC
Definition types.h:51
void * x10
Definition types.h:52
Definition types.h:59
HSD_GObj * x10
Definition types.h:65
struct un_80304138_objalloc_t * prev
Definition types.h:67
unsigned char x1
Definition types.h:61
HSD_GObjProc * x14
Definition types.h:66
unsigned char x0
Definition types.h:60
struct un_80304138_objalloc_t * next
Definition types.h:68
DevText * x4
Definition types.h:62
int(* xC)(int)
Definition types.h:64
struct un_80304138_objalloc_t_x8 * x8
Definition types.h:63
Definition types.h:37
HSD_JObj * x14
Definition types.h:39
HSD_Archive * archive
Definition types.h:42
char pad_1C[0x50 - 0x20]
Definition types.h:41
HSD_JObj * x18
Definition types.h:40
short x54
Definition types.h:43
short x56
Definition types.h:44
char pad_0[0x18]
Definition types.h:38