rename-a-c-file-or-header-file
Installation
SKILL.md
Rename a C file or a Header File
Instructions
C files and their associated header files are mapped to specific ROM addresses via the Splat project configuration in snowboardkids2.yaml.
A file will typically have a code segment, such as:
- [0x4A40, c]
It may also have data and/or rodata segments. Data segment(s) are mapped to the code via the third argument. The name specified in the third argument must match the name of the code segment. In this case the code segment has no name so it defaults to using its ROM address as a name (4A40). For example:
- [0x8CBA0, .data, 4A40]
To rename 4A40.c to credits.c, we would need to do the following: