mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-18 05:44:53 +00:00
Misc Cleanup 2 (#1007)
* Cleanup `UNK_TYPE`, `UNK_PTR` usage * Add some missing empty lines after declarations * Remove some legacy comments from non-matching times * Fix some grammar (mostly "it's"/"its") * Use proper names for two symbols after ZAPD bugfix * Cleanup `place_title_cards.xml` * Use `NULL` to check against `D_8012D260` pointer * Parentheses around some macro arguments * wip proofread headers up to z64animation.h
This commit is contained in:
parent
04a9d51e90
commit
669732abbe
104 changed files with 217 additions and 92 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
u32 UCodeDisas_TranslateAddr(UCodeDisas* this, u32 addr) {
|
||||
u32 physical = this->segments[SEGMENT_NUMBER(addr)] + SEGMENT_OFFSET(addr);
|
||||
|
||||
return PHYSICAL_TO_VIRTUAL(physical);
|
||||
}
|
||||
|
||||
|
@ -136,6 +137,7 @@ const char* UCodeDisas_ParseCombineAlpha(u32 value, u32 idx) {
|
|||
|
||||
void UCodeDisas_Init(UCodeDisas* this) {
|
||||
u32 i;
|
||||
|
||||
bzero(this, sizeof(UCodeDisas));
|
||||
for (i = 0; i < NUM_SEGMENTS; i++) {
|
||||
this->segments[i] = gSegments[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue