-
Notifications
You must be signed in to change notification settings - Fork 72
/
lbsnap.c
74 lines (51 loc) · 1.14 KB
/
lbsnap.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include "lbsnap.static.h"
#include <dolphin/card/CARDMount.h>
void lbSnap_8001D2BC(void)
{
int i;
for (i = 0; i < (signed) ARRAY_SIZE(lb_80433380.x4C_cardState); i++) {
int prev = lb_80433380.x4C_cardState[i];
lb_80433380.x4C_cardState[i] = CARDProbe(i);
if (lb_80433380.x4C_cardState[i] != prev) {
lb_80433380.x54_stateChanged[i] = true;
}
}
}
/// #lbSnap_8001D338
int lbSnap_8001D350(int i)
{
struct Unk80433380_48* ptr = &lb_80433380.x48[i];
if (ptr->unk0 == 0 && lb_80433380.x54_stateChanged[i]) {
ptr->unk0 = 8;
}
return ptr->unk0;
}
/// #lbSnap_8001D394
/// #lbSnap_8001D3B0
/// #lbSnap_8001D3CC
/// #lbSnap_8001D3E8
/// #lbSnap_8001D40C
/// #lbSnap_8001D4A4
/// #lbSnap_8001D5FC
/// #lbSnap_8001D7B0
/// #lbSnap_8001DA5C
/// #lbSnap_8001DC0C
/// #lbSnap_8001DE8C
/// #lbSnap_8001DF20
/// #lbSnap_8001DF6C
/// #lbSnap_8001E058
s32 lbSnap_8001E204(void)
{
return 0x3E840;
}
s32 lbSnap_8001E210(void)
{
return 0x840;
}
/// #lbSnap_8001E218
void lbSnap_8001E27C(void)
{
lb_80433380.unk_0 = 0;
lb_80433380.x48 = NULL;
}
/// #lbSnap_8001E290