Skip to content

Commit ccf1329

Browse files
committed
Match 3 vec copy setup advance callbacks
1 parent 4ba2f3e commit ccf1329

6 files changed

Lines changed: 60 additions & 111 deletions

File tree

src/overlays/ov120/asm_stubs/calls/func_ov120_020cdb80.c

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
typedef struct Vec3 {
2+
int x;
3+
int y;
4+
int z;
5+
} Vec3;
6+
7+
extern void func_ov107_020c9264(int obj, int a, int b);
8+
extern void func_ov107_020c9ee8(int obj, int a, int b);
9+
extern void func_0203c634(void *node, int idx, void *next);
10+
extern void func_ov120_020cdbf4(void);
11+
12+
void func_ov120_020cdb80(int *node) {
13+
int *state = (int *)node[1];
14+
state[0xb] -= 0x100;
15+
*(Vec3 *)(state + 7) = *(Vec3 *)(state + 10);
16+
if (((unsigned int)(*(unsigned char *)(*state + 0x17a) << 0x1f) >> 0x1f) == 0) return;
17+
func_ov107_020c9264(*state, 8, 0);
18+
func_ov107_020c9ee8(*(int *)(*state + 0x3a0), 2, 0);
19+
func_0203c634(node, *(signed char *)(node + 8), func_ov120_020cdbf4);
20+
}

src/overlays/ov121/asm_stubs/calls/func_ov121_020cf9a0.c

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
typedef struct Vec3 {
2+
int x;
3+
int y;
4+
int z;
5+
} Vec3;
6+
7+
extern void func_ov107_020c9264(int obj, int a, int b);
8+
extern void func_ov107_020c9ee8(int obj, int a, int b);
9+
extern void func_0203c634(void *node, int idx, void *next);
10+
extern void func_ov121_020cfa14(void);
11+
12+
void func_ov121_020cf9a0(int *node) {
13+
int *state = (int *)node[1];
14+
state[0xb] -= 0x100;
15+
*(Vec3 *)(state + 7) = *(Vec3 *)(state + 10);
16+
if (((unsigned int)(*(unsigned char *)(*state + 0x17a) << 0x1f) >> 0x1f) == 0) return;
17+
func_ov107_020c9264(*state, 8, 0);
18+
func_ov107_020c9ee8(*(int *)(*state + 0x3a0), 2, 0);
19+
func_0203c634(node, *(signed char *)(node + 8), func_ov121_020cfa14);
20+
}

src/overlays/ov122/asm_stubs/calls/func_ov122_020d17c0.c

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
typedef struct Vec3 {
2+
int x;
3+
int y;
4+
int z;
5+
} Vec3;
6+
7+
extern void func_ov107_020c9264(int obj, int a, int b);
8+
extern void func_ov107_020c9ee8(int obj, int a, int b);
9+
extern void func_0203c634(void *node, int idx, void *next);
10+
extern void func_ov122_020d1834(void);
11+
12+
void func_ov122_020d17c0(int *node) {
13+
int *state = (int *)node[1];
14+
state[0xb] -= 0x100;
15+
*(Vec3 *)(state + 7) = *(Vec3 *)(state + 10);
16+
if (((unsigned int)(*(unsigned char *)(*state + 0x17a) << 0x1f) >> 0x1f) == 0) return;
17+
func_ov107_020c9264(*state, 8, 0);
18+
func_ov107_020c9ee8(*(int *)(*state + 0x3a0), 2, 0);
19+
func_0203c634(node, *(signed char *)(node + 8), func_ov122_020d1834);
20+
}

0 commit comments

Comments
 (0)