summaryrefslogtreecommitdiff
path: root/docs/tutorial/data.md
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-10-27 10:03:02 -0300
committerGitHub <noreply@github.com>2023-10-27 10:03:02 -0300
commitcf41eeb3ac65c0d51d6758ddc4cad9474b38a796 (patch)
tree1bbe5a5141eaceb65623ec527cc77f76592e1166 /docs/tutorial/data.md
parent6475196f0fd24b1697241e3662bc732cdd81d212 (diff)
Remove `(ActorFunc)` cast on `InitVars` (#1148)
* Remove ActorFunc cast * Format * Revert "Format" This reverts commit a6e89b39692c22cfae26c8aa3a8fe288ccd61c32. * Messing with formatting * format header a bit * Revert "Messing with formatting" This reverts commit c8db520278d7730a83e3fbc460ebe87929c16928. * comment * format * more comments * format * format * format * properly format
Diffstat (limited to 'docs/tutorial/data.md')
-rw-r--r--docs/tutorial/data.md44
1 files changed, 22 insertions, 22 deletions
diff --git a/docs/tutorial/data.md b/docs/tutorial/data.md
index 07ea8cfac..2c3f1d2e2 100644
--- a/docs/tutorial/data.md
+++ b/docs/tutorial/data.md
@@ -44,15 +44,15 @@ Once we have decompiled enough things to know what the data is, we can import it
```C
#if 0
ActorInit En_Recepgirl_InitVars = {
- ACTOR_EN_RECEPGIRL,
- ACTORCAT_NPC,
- FLAGS,
- OBJECT_BG,
- sizeof(EnRecepgirl),
- (ActorFunc)EnRecepgirl_Init,
- (ActorFunc)EnRecepgirl_Destroy,
- (ActorFunc)EnRecepgirl_Update,
- (ActorFunc)EnRecepgirl_Draw,
+ /**/ ACTOR_EN_RECEPGIRL,
+ /**/ ACTORCAT_NPC,
+ /**/ FLAGS,
+ /**/ OBJECT_BG,
+ /**/ sizeof(EnRecepgirl),
+ /**/ EnRecepgirl_Init,
+ /**/ EnRecepgirl_Destroy,
+ /**/ EnRecepgirl_Update,
+ /**/ EnRecepgirl_Draw,
};
static void* D_80C106B0[4] = { (void*)0x600F8F0, (void*)0x600FCF0, (void*)0x60100F0, (void*)0x600FCF0 };
@@ -100,15 +100,15 @@ Next remove all the externs, and uncomment their corresponding commented data:
```C
ActorInit En_Recepgirl_InitVars = {
- ACTOR_EN_RECEPGIRL,
- ACTORCAT_NPC,
- FLAGS,
- OBJECT_BG,
- sizeof(EnRecepgirl),
- (ActorFunc)EnRecepgirl_Init,
- (ActorFunc)EnRecepgirl_Destroy,
- (ActorFunc)EnRecepgirl_Update,
- (ActorFunc)EnRecepgirl_Draw,
+ /**/ ACTOR_EN_RECEPGIRL,
+ /**/ ACTORCAT_NPC,
+ /**/ FLAGS,
+ /**/ OBJECT_BG,
+ /**/ sizeof(EnRecepgirl),
+ /**/ EnRecepgirl_Init,
+ /**/ EnRecepgirl_Destroy,
+ /**/ EnRecepgirl_Update,
+ /**/ EnRecepgirl_Draw,
};
static void* D_80C106B0[4] = { (void*)0x600F8F0, (void*)0x600FCF0, (void*)0x60100F0, (void*)0x600FCF0 };
@@ -140,10 +140,10 @@ For actors which have yet to be decompiled, this is mitigated by use of the file
```c
ActorInit En_Recepgirl_InitVars = {
- ACTOR_EN_RECEPGIRL,
- ACTORCAT_NPC,
- FLAGS,
- OBJECT_BG,
+ /**/ ACTOR_EN_RECEPGIRL,
+ /**/ ACTORCAT_NPC,
+ /**/ FLAGS,
+ /**/ OBJECT_BG,
};
```