Skip to content

Commit 1c95ab1

Browse files
committed
overlays: decompile SelectTierIfActive, SetState1/2IfIdle, ActivateEntryIfFlagged families (8 funcs)
1 parent 38dd379 commit 1c95ab1

8 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int func_ov008_02069b38(int a, unsigned b, int c) {
2+
if (a != 0 && c == 0) {
3+
return b < 2 ? 1 : 2;
4+
}
5+
return 0;
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void func_ov008_02077ee4(char *obj) {
2+
if (*(int *)(obj + 0x158) == 0 && *(int *)(obj + 0x180) == 0) {
3+
*(int *)(obj + 8) = 1;
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void func_ov008_02077f00(char *obj) {
2+
if (*(int *)(obj + 0x158) == 0 && *(int *)(obj + 0x180) == 0) {
3+
*(int *)(obj + 8) = 2;
4+
}
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int func_ov025_0209bf18(int a, unsigned b, int c) {
2+
if (a != 0 && c == 0) {
3+
return b < 2 ? 1 : 2;
4+
}
5+
return 0;
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void func_ov025_020ad53c(char *obj) {
2+
if (*(int *)(obj + 0x158) == 0 && *(int *)(obj + 0x180) == 0) {
3+
*(int *)(obj + 8) = 1;
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void func_ov025_020ad558(char *obj) {
2+
if (*(int *)(obj + 0x158) == 0 && *(int *)(obj + 0x180) == 0) {
3+
*(int *)(obj + 8) = 2;
4+
}
5+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
int func_ov244_020cd7ac(char *obj, int param2, int *flags) {
2+
char *base = *(char **)(obj + 0x214);
3+
unsigned v = (unsigned short)*flags;
4+
if (v & 1) {
5+
if (*(int *)(base + 0x14) != 0) return 0;
6+
*(char *)(*(char **)base + 0x1c7) = 2;
7+
*(int *)(base + 0x14) = 1;
8+
*(int *)(base + 0x18) = param2;
9+
return 1;
10+
}
11+
return 0;
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
int func_ov277_020cd7ac(char *obj, int param2, int *flags) {
2+
char *base = *(char **)(obj + 0x214);
3+
unsigned v = (unsigned short)*flags;
4+
if (v & 1) {
5+
if (*(int *)(base + 0x14) != 0) return 0;
6+
*(char *)(*(char **)base + 0x1c7) = 2;
7+
*(int *)(base + 0x14) = 1;
8+
*(int *)(base + 0x18) = param2;
9+
return 1;
10+
}
11+
return 0;
12+
}

0 commit comments

Comments
 (0)