Commit Graph
110 Commits
Author SHA1 Message Date
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
UnnunuandGitHub b41c206cfd document audio_vehicle.c (#588)
* wip

* wip

* wip

* wip

* document audio_vehicle.c

* update score once again

* unify function prefix

* small tweaks
2025-05-26 18:49:55 +03: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
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 de04669992 match: func_80066CDC (#552) 2025-05-05 23:12:32 +02:00
Ryan MyersandGitHub afb264bc16 Match stack_pointer with C code (#530)
* Remove useless comment

* Small amounts of documenting, official names, and use some new knowledge to match what was previously thought to be only possible with hasm.

* Define the proper type for the stack_pointer function, and come up with a solution for GCC builds that should hopefully work.

* Partial revert to support getting the actual stack pointer for GCC builds

* Come up with a better GCC build option for getting the stack pointer

* Update the score
2025-04-25 15:40:33 -04:00
Ryan MyersandGitHub c136b34b61 Match func_800BA8E4 (#528)
* First pass at func_800BA8E4

* Merge D_800E3078 into D_800E3070 and do func_800BA8E4 a better deal

* Update D_800E3070 to be like D_800E3080

* Match func_800BA4B8

* Update score

* Minor documenting changes

* func_8002CC30 minimum compilable code.

* func_800BA8E4 NON_MATCHING

* Match func_800BA8E4

* Update score

* Format
2025-04-23 15:24:11 -04:00
Dominik PetersandGitHub e5a6f14f24 match func_800BBF78 and non equivalent func_800BDC80 (#525)
* partial waves.c matches

* match: func_800BBF78 & fix formatting

* chore. update score
2025-04-21 15:04:23 +02:00
FazanaandGitHub e980d79bc1 document textures_sprites.c (#523) 2025-04-20 19:41:04 +01:00
79654e9e59 game_ui.c rework (#493)
* got overzealous with the alignments

* small knowledge improvement on models

* true

* add enum size entries for easy ref

* bgload names I forgot to merge in

* transition memes

* absinthe

* brug

* anguish

* hell

* getting there

* misery

* Update README.md

* Update include/structs.h

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

* format moment

* Delete object_animate.s

* Update obj_animate.s

* remembered to rename this

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2025-03-29 14:05:09 -04:00
Ryan MyersandGitHub d494d5dcf7 Audio struct fixes, and other random documenting things (#491)
* Migrade rodata for thread3_main, fix game.c not having a defined rodata in the splat yaml files, and run the formatter.

* func_80066CDC NON_MATCHING

* Minor stuff

* Small docs

* Fix some audio stuff

* Undo some var moving.
2025-03-26 20:43:33 -04:00
Ryan MyersandGitHub 6db9a8d6ea Splat merge (#470)
* First pass

* Fix n64crc and add submodules properly

* Fix other versions

* Match func_8005B818 for v80 code.

* Formatting

* Fix build for JPN in last commit. Still broken in post v77 roms though.

* Fix builds for other versions.

* Match load_menu_text for other versions.

* Fix progress script

* update m2c

* Modify asset tools to remove the LD script code.

* Fix asm file macro inclue

* Get a working splat version for us_1.0 to build from the assets tool.

* update asm differ

* Update tools again

* Fix the makefile to only compile assets when requested. This will build all versions successfully, and compile assets for us_1.0 when requested.

* First round of suggestions

* Small cleanup

* Fix the gcc_generate.py path.

* Make entrypointThreadStack

* Small addition to the last commit

* "Fix" score script. Still need to fix the score values themselves, but at least it runs and is kind of close.

* Much closer matching score script

* Fix the splat version due to a breaking change in 0.33.0 for this repo for now.

* Fix the main function name

* Add gitignore entries

* Fix the padding problem to be handled by objcopy instead of a binary pad from splat.

* Update the README and change dependencies to setup.

* Have a hasm header that can be tweaked.

* Still calculate the checksum on no_verify builds or they won't work.

* Add support for boot_custom.bin

* Fix custom boot ld code.

* Fix score script

* Fix gcc building.

* Update m2c

* Fix warning, stop ignoring mod assets, and add some handy make rules.

* Uggh, serves me right for not testing.

* First stab at modifiable entrypoint.

* Fix typo, and small README change

* Stop n64crd from defaulting to returning 6105, so we can properly fail if the CIC checksum fails. Also, fix the

* Extract custom boot script

* Update automated scripts.

* Woops, fixed the MAXCONTROLLERS thing now.

* Add the method for building binutils back. Sorry!

* Only use -m32 when the longbit says we're on a 64 bit platform.

* Woops....

* Hopefully fix arm detection for raspi ido downloads.
2025-03-25 09:07:00 -04:00
Ryan MyersandGitHub db602828c3 4 More matches, and large struct changes (#469)
* Match func_8005698C and fix func_8001B7A8

* Larger update to match func_80032424 and change a couple of structs

* format

* Fix many warnings

* Matxh func_80014B50

* Format func_80014B50

* Racing Smokey!

* Match func_80053750

* Update score

* Fix some explicit casts
2025-03-02 17:18:23 -05:00
Ryan MyersandGitHub a005a4eb3d Match all libultra, and more closely match ultralib (#466)
* Massive libultra changes

* Fix the build!

* Remove crc comment that seemd to break the score script for some reason.

* Update README score.

* Apply some suggestions

* rename sins and coss funcs.
2025-02-24 11:45:02 -05:00
Ryan MyersandGitHub 39c01d4f5e Splat changes (#462)
* Merge changes from splat where it makes sense at this stage.

* Update score, and script for what seems like new map file style.

* format

* Fix accidental inclusion of version specific details.

* Match camera_init

* Update Score

* Near match for func_80046524

* Format

* Woops, it's NON_MATCHING

* Missed button pressed value

* Work on documenting func_80046524

* MAtch func_80046524

* Match func_80046524

* Minor changes

* Fix warnings in func_80046524

* format.py

* Update README

* Match func_800230D0

* Fix UB in mode_init_taj_race
2025-02-21 09:23:36 -05:00
17fbd96b89 Some renames, and a few new ones. (#459)
* fix warns

* memory

* hehe

* name

* name

* yes

* Surpress bloaty warnings on matching builds

* Update game_ui.c

* label unused vi offset

* fix doubleword memcpy

* segment momento

* swap prefix since it'll be a bit more prominent

* Update src/save_data.c

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

* rcp.c renamed

* renamed video.c

* some memory enums

* rename memory.c

* revert the interrupts name

* Update video.h

* Update README.md

* b

* clang formatto

* Update memory.c

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2025-02-14 18:40:55 +00:00
8415bc71b1 Document almost all of menu.c (#447)
* strings

* fix ub

* first pass

* pass 2

* pass 3

* pass 4

* pass 5

* pass 6

* pass 7

* pass 8

* pass 9

* pass 10

* pass 11

* pass 11

* pass 12

* pass 13

* pass 13

* pass 14

* pass 15

* pass 16

* pass 17

* oh my giddy aunt I see the light

* h

* fix my life choices

* fix game breaking typo

* Update src/menu.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/menu.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/menu.c

Co-authored-by: David Benepe <benepe96@gmail.com>

---------

Co-authored-by: David Benepe <benepe96@gmail.com>
2024-05-25 20:29:41 +01:00
69fe4d3b3d More various labellings (#446)
* bumble

* rumble done basically

* printf is looking better now too

* racer stuff

* model offsets

* two wave things

* obj id

* fix object ids

* randomly remembered to fix alignment on these

* fix ids part 2

* format

* fix warning

* identify baseline table

* boss race IDs

* lots of hud

* last of the current feasible hud stuff

* Update README.md

* this name

* neat

* I randomly remembered why this exists

* anti tamper define

* object elevation

* ai nodes

* particle emitters

* objects

* spectate cams

* gost

* michael bay

* door

* okay thats enough

* gost

* fix build errors

* format

* Update include/level_object_entries.h

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

* Update src/objects.c

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

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2024-05-03 17:24:00 +01:00
FazanaandGitHub b92f46a46c Label rumble system, various missing bits of HUD, fix object ID references and label debug text (#445)
* bumble

* rumble done basically

* printf is looking better now too

* racer stuff

* model offsets

* two wave things

* obj id

* fix object ids

* randomly remembered to fix alignment on these

* fix ids part 2

* format

* fix warning

* identify baseline table

* boss race IDs

* lots of hud

* last of the current feasible hud stuff

* Update README.md

* this name
2024-04-29 23:15:00 +01:00
Ryan MyersandGitHub 46a1087b8f Validated and tested (#438) 2024-01-26 09:12:45 -05:00
FazanaandGitHub 88864107ab Finish labelling most functions in audio.c + camera.c (#431)
* name some camera things

* yea there

* lots of audio

* match a func

* better

* x

* egg

* all but one func in audio.c nopw

* audio looks good for now

* Update audio.c

* correct taj thing

* fix warnings

* Update audiosfx.h

* Update README.md
2023-11-02 18:53:53 +00:00
Ryan MyersandGitHub cf2fa915b9 Halloween! 🎃63% matched! (#430)
* Match func_80085B9C

* Match draw_menu_elements

* Match render_file_select_menu

* Minor cleanup and semi documenting

* Fix some warnings

* Match func_800871D8

* More SIDeviceStatus stuff

* Update progress

* Fix non equivalent

* Update filter alpha to blend factor

* Fixed minor spacing issue

* Better floats math.
2023-10-31 16:09:58 -04:00
FazanaandGitHub d8e58622e0 Name the last two files in src (#429)
* label animation and a few object flags

* models

* name funny spline

* Update menu.c

* better name

* rename unknown_005740.c

* ah its happened again

* fix warnings

* Fix that dumb idiot warning finally

* teag

* rename the last audio file

* Update math_util.c

* update math util to the latest

* small funny format

* quick change

* fix warnings

* Update README.md

* Fix a maths func

* fix nonequiv building

* bro come on
2023-10-31 16:39:28 +00:00