Commit Graph
402 Commits
Author SHA1 Message Date
FazanaandGitHub 116ee8e77e Sage branded brain blast leads to some new documented bits (#660)
* oops

* yum

* naming

* find homes for these

* Missed a few bits
2025-07-03 13:34:36 +01:00
UnnunuandGitHub 7e24105488 match func_8006017C (#659) 2025-07-03 13:05:56 +03:00
FazanaandGitHub b710316068 match func_8000CC7C (#658)
* there we go :)

* Update objects.c
2025-07-03 09:04:33 +01:00
UnnunuandGitHub cce72c9f62 decompile and document collision code (#653) 2025-07-02 11:29:55 +03:00
6e27848a47 match: func_8001F460 (#652)
* match: func_8001F460

* chore: remove comment

* Update src/objects.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

---------

Co-authored-by: Dominik Peters <dominik.peters@committance.com>
Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2025-06-26 21:07:45 +02:00
c106e87a01 Refactored Object structure (#650)
* remove ObjectSegment from Object

* remove some unused structs

* remove SegmentPropertiesObject from Object

* object types

* remove unneeded structs

* save

* fix build

* remove unneeded unk64 union fields

* get rid of unk64

* update score

* Apply suggestions from code review

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2025-06-26 18:58:23 +03:00
Ryan MyersandGitHub 55293e4f6e Clean up math_util.s (#649)
* Update some submodules, and tweak some printf code to more closely match the exact names and style of the official glibc version

* Update some offsets

* Clean up math_util.s, and figure out how to fix the sins functions just being labels. Now the elf file properly shows up as a function with the correct offset.

* Fix tables, and clean up some float values
2025-06-26 07:32:25 -04:00
a6533ddb1d match: func_80021600 (#647)
* match: func_80021600

* refac: rename vars in func_80021600

---------

Co-authored-by: Dominik Peters <dominik.peters@committance.com>
2025-06-25 21:10:28 +02:00
9fd0885200 More documenting and labelling things I've learned, suddenly and unsuddenly. (#645)
* ooh

* race

* Update menu.c

* fix more menu UB

* fix some warns

* fix symbols

* more model stuff

* confusion

* format le code

* Update racer.h

* Update src/objects.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* Update src/racer.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* improve vehicle anim func

* clean up another function

* Update tools/python/calc_func_checksums.py

Co-authored-by: Dominik Peters <github@d-peters.com>

* Update tools/python/calc_func_checksums.py

Co-authored-by: Dominik Peters <github@d-peters.com>

* oop

* Update object_functions.c

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
Co-authored-by: Dominik Peters <github@d-peters.com>
2025-06-25 17:57:50 +01:00
Dominik PetersandGitHub 7f82296e78 match: func_800101AC (#641) 2025-06-22 19:08:34 +02:00
UnnunuandGitHub 87c1b06490 match spawn_object (#637)
* clean up Object-unk68

* rename field

* remove unused struct

* remove padding

* match spawn_object

* spawn flags

* clean up
2025-06-20 17:51:45 +03:00
UnnunuandGitHub 683a4eff82 match func_8002CC30 (#629) 2025-06-17 16:14:28 +03:00
UnnunuandGitHub 4b07cfffa1 Document camera and sprites (#614) 2025-06-11 15:36:25 +03:00
Dominik PetersandGitHub eb131e6bc4 document: remaining funcs, add decomp.me links (#612) 2025-06-11 14:11:24 +02:00
UnnunuandGitHub eaa2ac9fa4 name and document lights, CC modes and textures (#607) 2025-06-06 08:39:06 +03:00
Ryan MyersandGitHub 520b3d58e3 Add a few NON_EQUIVALENT functions from scratches to keep them up to date (#602)
* WIP func_800101AC

* WIP func_800452A0

* cleanup

* Formatter and func_8004CC20 near match

* func_8004CC20 better score and documentation

* func_80049794 WIP and compilable

* Major cleanup of func_80049794

* Formatter

* Update scratch

* Add func_80019808 from scratch

* Cleanup func_80019808

* func_80019808 score improvment

* Improve func_80049794 score (Thanks Dominik!)

* func_8001C6C4 WIP

* func_8001E93C WIP

* small documenting

* Eliminate a lot of Obj64 casts.
2025-06-03 14:47:46 -04:00
FazanaandGitHub 4c4309665a Various touchups here and there, some renames in camera.c (#597)
* the beginning of the void

* update asset tool

* void :)

* there

* cam

* model

* more

* fix warns

* ok

* whoops missed a rename
2025-06-01 19:33:07 +01:00
Ryan MyersandGitHub 7759c12a5b Match func_8002F440 (#596)
* Add a WIP attempt of func_8004447C, and add some scratch links

* match func_8002F440 and run formatter

* Cleanup some comments

* Update score, fix warnings, and run formatter again

* Remove some bad comments
2025-05-30 17:06:44 -04:00
UnnunuandGitHub 1633abc11a decompile and document math_util.c (#595) 2025-05-30 16:50:19 +03:00
Ryan MyersandGitHub 33a685be8e Document some Boost data (#593)
* Run formatter

* Document some boost info
2025-05-28 15:38:17 -04:00
FazanaandGitHub dd0fffb030 Homogenate batch flags and render flags and begin the painful task of documenting waves. (#590)
* part one of wave pain

* 2

* littel bit more

* m

* h

* l

* aagghh

* yeah

* :)

* bruh

* b

* m

* faith

* z

* b

* rename batch flags

* Update waves.c

* fix conflicts
2025-05-27 22:20:50 +01:00
UnnunuandGitHub b92148ab0b match func_80060910 and func_80060AC8 (#589)
* match func_80060AC8

* reworked func_80060C58

* match func_80060910

* non equivalent func_8006017C

* format

* match calc_env_mapping_for_object
2025-05-27 21:09:54 +03:00
Ryan MyersandGitHub 3346ac1d59 Match func_80017E98 (#586)
* Match func_80017E98

* Document some math functions using Wikipedia for my knowledge base.
2025-05-23 14:51:48 -04:00
Ryan MyersandGitHub 97aaf39e64 Cleanup, and documenting (#583)
* Some amount of documenting in printf.c

* Formatter, and do some mild cleanup and documentation in menu.c

* Fix gSaveMenuObjectIndices

* Use ObjectTransform in MenuAsset as it's what's being passed to cam_push_model_mtx

* Fix warnings and format

* Cleanup some objects.c code and it's usage of casting.

* Add Object to Object_64

* Much better score for func_8000B750

* Match func_8000B750

* Update score

* Do some naming

* Sorry one more better documenting!
2025-05-21 12:56:15 -04:00
UnnunuandGitHub 2ac56bae9c Match func_80083098 + minor cleanups across codebase (#581)
* make Camera struct

* wip

* wip

* fix gSPMatrix args

* gfx macros renamed

* wip

* document matrix functions

* match func_80083098

* update score and format

* JP version not matched

* build OK

* PR suggestions
2025-05-20 17:34:58 +03:00