7 new matches, and code cleanup (#215)

* Match func_8007EF80

* Match func_80027E24

* Add some names to the function

* Match func_80029DE0

* BoundingBox variables named

* Fix NON_EQUIVALENT functions not building due to struct changes

* Documenting

* Match get_level_segment_index_from_position

* Minor revision of last match

* Match traverse_segments_bsp_tree

* Match render_level_geometry_and_objects

* Cleaned up some warnings

* Update math.c includes to more specifically include our version of math.h, which fixes generating ctx.c

* Add a livediff.sh helper script

* Match func_80067D3C

* Map instances of + 0x8000000 to OS_PHYSICAL_TO_K0, because that's what made sense to me with that

* Convert a lot of data types to Mtx, update some vairable names, and fix some warnings

* Clean up the func_80068408 fast3d_cmd

* Fix unused parameter warnings in object_functions.c

* Commit suggestions from Faschz

* WIP func_8007BA5C

* func_8007BA5C WIP

* More func_8007BA5C work

* Leaving func_8007BA5C as is for now.

* WIP func_8007BF34

* Update some signatures and add some externs to help ctx.c generation

* WIP func_8007B4E8

* Fix missing reference to a var in a non-matching func

* Update src/textures_sprites.h

Co-authored-by: AntonioCastelli <aatcastelli@gmail.com>

* Update src/unknown_0255E0.c

Co-authored-by: AntonioCastelli <aatcastelli@gmail.com>

* Rename some vars in func_8002A134

Co-authored-by: Ryan Myers <foldor@gmail.com>
Co-authored-by: AntonioCastelli <aatcastelli@gmail.com>
This commit is contained in:
Ryan Myers
2022-03-28 08:36:12 -04:00
committed by GitHub
co-authored by Ryan Myers AntonioCastelli
parent d2eb45ff48
commit 41385fc098
34 changed files with 883 additions and 1705 deletions
+11 -1
View File
@@ -39,6 +39,16 @@ u32 __osProbeTLB(void *);
u32 __osDisableInt(void);
void __osRestoreInt(u32);
OSThread *__osGetCurrFaultedThread(void);
u32 osVirtualToPhysical(void *addr);
/* Address translation routines and macros */
extern u32 osVirtualToPhysical(void *);
extern void * osPhysicalToVirtual(u32);
#define OS_K0_TO_PHYSICAL(x) (u32)(((char *)(x)-0x80000000))
#define OS_K1_TO_PHYSICAL(x) (u32)(((char *)(x)-0xa0000000))
#define OS_PHYSICAL_TO_K0(x) (void *)(((u32)(x)+0x80000000))
#define OS_PHYSICAL_TO_K1(x) (void *)(((u32)(x)+0xa0000000))
#endif