mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-07 20:01:20 -04:00
Introduce actor_table.h (#985)
* Make actor_table.h
* DECLARE_OVERLAY_SEGMENT
* InitVars
* Remove InitVars from actor headers
* format
* Use table for ActorID enum
* Move segment symbols declarations back to segment_symbols.h
* add newline to actor_table.h
* Add effects back to segnt_symbols.h
* Update include/tables/actor_table.h
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* Update src/overlays/actors/ovl_Shot_Sun/z_shot_sun.h
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
* name unused parameters
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
* format
* Revert "name unused parameters"
This reverts commit 14fe63313a.
* Remove `const` from InitVars
* Add underscore to unused parameters
* ActorID -> ActorId
* bss
* missing symbols and bss
* lower diff a bit
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ Once we have decompiled enough things to know what the data is, we can import it
|
||||
|
||||
```C
|
||||
#if 0
|
||||
const ActorInit En_Recepgirl_InitVars = {
|
||||
ActorInit En_Recepgirl_InitVars = {
|
||||
ACTOR_EN_RECEPGIRL,
|
||||
ACTORCAT_NPC,
|
||||
FLAGS,
|
||||
@@ -99,7 +99,7 @@ endseg
|
||||
Next remove all the externs, and uncomment their corresponding commented data:
|
||||
|
||||
```C
|
||||
const ActorInit En_Recepgirl_InitVars = {
|
||||
ActorInit En_Recepgirl_InitVars = {
|
||||
ACTOR_EN_RECEPGIRL,
|
||||
ACTORCAT_NPC,
|
||||
FLAGS,
|
||||
@@ -139,7 +139,7 @@ As we'd expect, of course: we didn't fulfil our promise that they were defined e
|
||||
For actors which have yet to be decompiled, this is mitigated by use of the file `undefined_syms.txt`, which feeds the linker the raw addresses to use as the symbol definitions. However, we want to replace these segmented addresses with proper object symbols whenever possible. In `En_Recepgirl_InitVars`, we can see that this actor uses the object `OBJECT_BG`:
|
||||
|
||||
```c
|
||||
const ActorInit En_Recepgirl_InitVars = {
|
||||
ActorInit En_Recepgirl_InitVars = {
|
||||
ACTOR_EN_RECEPGIRL,
|
||||
ACTORCAT_NPC,
|
||||
FLAGS,
|
||||
|
||||
Reference in New Issue
Block a user