Commit Graph
387 Commits
Author SHA1 Message Date
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
Dominik PetersandGitHub 41fb214dff partial match: func_80028050 (#579)
* partial match: func_80028050

* match: func_8007CA68
2025-05-18 00:10:34 +02:00
David BenepeandGitHub c8a755a5c9 DKR Assets Tool v0.5 (#577)
* Saving files before attempting to integrate custom crash screen

* Put code under DkrAssetsTool namespace

* More progress

* Lots of work done.

* Forgot to revert back to v77 in the makefile

* Included cstdint in bytes_view.hpp

* Hopefully fixed issue with CEnum::tostring(), removed asset_enums from tracking, and modified gitignore to allow obj files from the mods folder

* .mtl file and the textures should now check if the path is absolute or relative.

* Fixed compile_all.sh

* Doing a thing that is technically not valid.

* Removed 'make assets', now assets are built in the normal 'make' setting.
2025-05-16 17:51:40 -04:00
Ryan MyersandGitHub 0f5d0e0e43 Convert Asset20 to Object_Boost and convert unk80068514_arg4 to Sprite (#569)
* Convert Asset20 to Object_Boost and convert unk80068514_arg4 to Sprite

* clean up some SoundHandle warnings

* Fix many warnings

* Rename racer_sound_init

* Fix last warning and format
2025-05-13 20:33:44 -04:00
Dominik PetersandGitHub 10bb972aa3 match: func_80027184 (#565)
* match: func_80027184
2025-05-13 07:37:58 -04:00
Ryan MyersandGitHub 5304ed697b Rematch render_epc_lock_up_display to remove local static! (#561)
* Fix name of verify all versions job

* Create a script to run m2c on all remaining unmatched functions.

* Update some functions with updated versions from scratches.

* Minor func_800135B8 documenting

* formatting

* remove yaml patch file

* Add better bug comments to more standardize them

* Fix and document various small issues

* Add objStatusString to the symbols list

* Some work trying to see if I can fix thread0 code some.

* test

* near match for render_epc_lock_up_display

* Rematch render_epc_lock_up_display without the static bs

* Remove the stacks.c file

* Do some cleanup for thread0_epc.

* format

* update score
2025-05-09 09:37:13 -04:00
4a56402723 match: func_800135B8 (#559)
* match: func_800135B8

* fix: format

* Update src/objects.c

* Update src/objects.c

* Update src/objects.c

* Update src/objects.c

* Update src/objects.c

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>

---------

Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>
2025-05-07 15:31:38 +02:00
FazanaandGitHub 934ef08ad8 Clean up game_ui.c and rework compiler flags + fix the warnings they caused. (#556)
* warns prelim

* Update Makefile

* catch a rain straggler

* wowie

* m

* game_ui.c moment

* Update game_ui.c

* patch

* format
2025-05-06 14:54:20 +01:00
UnnunuandGitHub 764705b67c match and document audio_spatial.c (#555)
* match func_80004668 and adjust types

* match _handleEvent

* documentation WIP

* wip

* document audiosfx.c

* fix build

* a few type renames

* update score

* remove comment

* fix type

* wip

* match func_80008438

* update score

* documentation almost done

* documented audio_spatial.c

* update score

* format and update score

* remove duplicated lines

* PR suggestions
2025-05-06 16:47:08 +03:00
Ryan MyersandGitHub 53ab6559e5 Fix building for other versions (#551)
* Fix spelling mistakes and format

* lights

* formatting

* Small documenting

* Small documenting

* Fix hud_main_time_trial for JP, and start trying to match it.

* Match v80 again

* documenting

* Match all versions and do some cleanup of some parts of existing matches.

* Format

* Update score

* Fix some warnings

* Start work on func_80008438

* Further work on func_80008438, still HEAVILY WIP
2025-05-05 20:27:33 -04:00
UnnunuandGitHub b88bd4366e match and document audiosfx.c (#550)
* match func_80004668 and adjust types

* match _handleEvent

* documentation WIP

* wip

* document audiosfx.c

* fix build

* a few type renames

* update score

* remove comment

* fix type

* fix typo
2025-05-05 15:47:26 +03:00
Dominik PetersandGitHub 4aa7b9a8c1 match: hud_element_render, hud_init_element, inline rodata strings (#547)
* match: hud_element_render, inline rodata strings

* match: hud_init_element

* chore: remove Non Matching comment in game_ui.h
2025-05-05 00:28:17 +02:00
Dominik PetersandGitHub 45208555b8 match: func_800BCC70 (#539)
* match: func_800BCC70

* refac: replace magic value with constant
2025-05-01 16:35:49 +02:00
Dominik PetersandGitHub 93413ebb03 match: func_800BE654 (#537)
* match: func_800BE654

* lint: run format.sh

* refac: replace 0xFFFFFFF with COLOUR_TAG_CYAN
2025-04-29 20:42:08 -04:00
UnnunuandGitHub 57aa448faa match audioline_reset and func_80009D6C in audio_spatial.c (#536)
* wip

* match audioline_reset

* match func_80009D6C

* move ABS to macros.h
2025-04-28 17:28:18 +03:00
UnnunuandGitHub 9c00d3f75b match func_80025510, partial match of other functions in tracks.c (#532)
* match func_80025510

* two function done

* update score

* some non matchings

* update score

* format and update score
2025-04-28 15:07:18 +03:00