Commit Graph
133 Commits
Author SHA1 Message Date
b74f340fe3 Match and label some track functions (#354)
* match render_scene and render_level_segment

* improve accuracy of a name

* labbie

* disregard libultra in documentation score

* Start on triangle batch flags

* Q

* more tracks.c stuff

* Update src/unknown_0255E0.c

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

* Update unknown_0255E0.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2023-01-06 19:39:37 +00:00
51f40789c6 Improve and label a bunch of racer.c functions (#348)
* label some racer funcs

* Update object_functions.c

* match render_epc_lock_up_display

* Update thread0_epc.c

* Update thread0_epc.c

* delta

* racer labelling

* bit more

* last ones for tonight

* nonmatching func_80046524

* take a guess

* quick rename

* Update thread0_epc.c

* some wave correction

* Update waves.c

* suddenly unplanned object cleanup

* quick fixes

* Update thread0_epc.c

* Update src/racer.c

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

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2023-01-02 15:42:19 +00:00
c6351af6c3 lots of matching involving misc racers (#346)
* match func_8005E4C0

* label vehicle enums

* prelim

* match func_800B1130

* match func_8005F310

* prelim

* match func_8005C364

* rename and warning fix

* another wave of particle cleanup

* match func_8005E204

* fixed warnings

though it's just a plaster

* Update objects.c

* match func_8005D0D0

* macros

* some labels

* match func_8005D820

* reorganise boss headers

* stuff that I don't really feel like describing it's just lots of dumb stuff lol

* add collision.c

* one more

* some racer documentation

* fix blacklist bug in score.py

* more.

* nonequiv func_800314DC

* Update collision.c

* Update unknown_0255E0.h

* document two camera funcs

* Update racer.c

* quick fixes

* Update src/vehicle_tricky.c

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

* Update src/vehicle_smokey.c

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

* Update src/vehicle_misc.h

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

* Update src/particles.h

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

* Update src/vehicle_bluey.c

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

* requested changes

* Update vehicle_smokey.c

* oops missed one

* Update object_functions.c

* Update racer.c

Co-authored-by: David Benepe <benepe96@gmail.com>
2022-12-30 14:14:53 +00:00
FazanaandGitHub 9a60c84b67 Numerous matches and particle hell (#344)
* match 3 memory funcs

* match func_80071314

* match free_slot_containing_address

* match allocate_from_memory_pool

* Update audio.c

* two mem matches

* match func_800718A4

* match func_800C0834

* match func_800C27A0

* oops

* match func_800C01D8

* match func_800A8474

* prelim

* named like 0.2 things

* quick fixes

* match func_8006A6B0

* match func_8006AC00

* match func_8006AE2C

* match  func_800C2D6C

* game_text matches

* func_800C38B4 match

* renamed thread30

* match func_800AF52C

* match func_800AFE5C

* first wave of particle matches and fixes

* match gzip_huft_build

* wave 2

* wave 3

* Update particles.c
2022-12-22 13:55:08 +00:00
FazanaandGitHub 63b9a82df9 45% decompiled 15% labelled. (#342)
* match 3 memory funcs

* match func_80071314

* match free_slot_containing_address

* match allocate_from_memory_pool

* Update audio.c

* two mem matches

* match func_800718A4

* match func_800C0834

* match func_800C27A0

* oops

* match func_800C01D8

* match func_800A8474

* prelim

* named like 0.2 things

* quick fixes
2022-12-18 12:39:40 +00:00
041a3927b9 Few matches + renames (#340)
* implicit errors

* good lord that was a lot

* Update csplayer.c

* Update game.c

* give names to the image segments

* Update csplayer.c

* whole bunch of nonmatching stuff

* rename a thing

* match func_8001BB68

* match func_8001A7D8 and document checkpoints

* match func_8000F648

* match func_800214E4

* Head.

* match func_8002342C

* nonmatching obj_loop_weaponballoon

* match func_8001709C

* match func_8003E694

* Update object_functions.c

* name a field

* match new_memory_pool

* we do a little labelling

* label function rendermode flags

* name interacted objects

* Update object_functions.c

* quick fixes

* Update unknown_05FF10.c

* alakazoom

* Update src/racer.c

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

* Update src/objects.c

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

* Update include/structs.h

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

* oh this is necessary because recursive lol

Co-authored-by: David Benepe <benepe96@gmail.com>
Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2022-12-15 20:19:28 +00:00
FazanaandGitHub 965aa1f33e I finally defeated every avoidable warning (#335)
* silver coin labels

* match obj_loop_log

* better

* match obj_loop_modechange

* nonmatching obj_loop_fireball_octoweapon

* fix racer.c warnings

* match obj_loop_fireball_octoweapon

* Update object_functions.c

* match obj_loop_lasergun

* unknown_0255E0.c warnings fixed

* asset_loading.c warnings too

* laser gun labels

* quick fixes

* match func_8003F0F8

* prelim

* match func_8000E4E8

* warnings are dead

* quick fixes

* Update math_util.c

* reee
2022-12-10 22:42:50 +00:00
FazanaandGitHub 892ef6270f More object behaviour matches (#333)
* silver coin labels

* match obj_loop_log

* better

* match obj_loop_modechange

* nonmatching obj_loop_fireball_octoweapon

* fix racer.c warnings

* match obj_loop_fireball_octoweapon

* Update object_functions.c

* match obj_loop_lasergun

* unknown_0255E0.c warnings fixed

* asset_loading.c warnings too

* laser gun labels

* quick fixes
2022-12-09 18:18:57 +00:00
bf6269f3b9 object function matches and a lot of cleanup (#329)
* match obj_loop_bridge_whaleramp

* ya

* document main.c

* document font.c

* Update font.c

* match obj_loop_banana

* match obj_loop_frog and obj_loop_levelname

* Update object_functions.c

* fix object.c warnings

* label some render flags

* finish font.c for now

* move struct

* font.c finished

* match obj_loop_trigger

* quick fixes

* Update src/font.h

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.h

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.h

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

Co-authored-by: David Benepe <benepe96@gmail.com>
2022-12-08 16:05:29 +00:00
26483725eb we defeated tictoc (#327)
* Update score.py

* match func_80001FB8

* :)

* match func_8000232C

* label func

* match play_sound_global

* match func_800BF524

* match func_80061C0C

* match func_800BFE98

* match func_800BF3E4

* match func_800B8134

* match func_800BBE08

* match obj_loop_wavepower

* match func_800BFC54

* Update src/waves.c

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

* Update src/waves.c

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

* Update src/object_models.c

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

* Update src/object_models.c

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

* Update src/audio.c

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

* nonmatch

* label Taj's state behaviour

* taj updates

* match obj_loop_stopwatchman

* rename struct field

* Update m2ctx.py

* revert some names

* Update structs.h

* Update object_functions.h

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

* Update src/object_functions.c

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

Co-authored-by: David Benepe <benepe96@gmail.com>
2022-12-07 20:48:14 +00:00
c9d6050773 Parkwarden loop complete! + extra (#325)
* Minor cleanup and warning fixes

* WIP on func_80073588

* Update score for func

* Increase score to what seems to be NON_MATCHING

* Update func

* WIP on func_800756D4

* func_800756D4 update

* Update func

* Match func_800756D4 with some cleanup still neeeded

* Revert some changes that looked messier than what was therE

* Update some colur tags

* Updats some more colour tags

* WIP obj_loop_parkwarden

* Update park warden func, and do some fade transition stuff randomly

* Update park warden func again

* Update parkwarden to over 97% complete, and start truly integrating it

* Add more lines to the livediff for large funcs, and add a missing function signature for parkwarden

* Warning fixes, and over 99% on parkwarden

* Match parkwarden loop

* Apply suggestions, and fix some minor cleanup in parkwarden func

Co-authored-by: Ryan Myers <foldor@gmail.com>
2022-12-07 08:22:16 -05:00
154ca886d2 40% (#317)
* match func_8002A5F8

* match func_8002A900

* identify function

* bit more function identification

* funny label

* nonmatching func_8002C0C4

* prelim

* match func_800289B8

* match func_8002D8DC

* match obj_loop_fogchanger

* identify some render mode flags

* match func_80028CD0

* Update camera.c

* match func_80055EC0

* Update camera.c

* match drop_bananas

* Update racer.c

* prelim

* match obj_loop_wizpigship and obj_loop_trophycab

* Update object_functions.c

* Update object_functions.c

* match obj_loop_ttdoor

* a

* match obj_loop_collectegg and func_80056E2C

* match obj_loop_weather

* rename a func

* fixed object_functions.c warnings

* match obj_loop_silvercoin

* match obj_loop_bombexplosion

* match func_8003FC44 and obj_loop_flycoin

* quick fixes

* Update include/structs.h

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

* Update objects.c

* Update object_functions.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2022-12-04 18:43:29 +00:00
David Benepe e3d2635685 Matched func_80028CD0 2022-12-01 16:49:21 -05:00
9a56ac59f1 Move math util functions to a c file + nonmatching (#312)
* math util in .c

* all donezo

* move

* Update Makefile

* Update src/math_util.c

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

Co-authored-by: David Benepe <benepe96@gmail.com>
2022-12-01 19:38:05 +00:00
FazanaandGitHub 36a27179b2 >38% (#299)
* match func_8002A5F8

* match func_8002A900

* identify function

* bit more function identification

* funny label

* nonmatching func_8002C0C4

* prelim

* match func_800289B8

* match func_8002D8DC

* match obj_loop_fogchanger
2022-11-20 23:37:50 +00:00
tonyspumoniandGitHub 9fd84ea645 Some racer matches and other stuff (#287)
* some matches

* match func_8000FBCC

* match 3 funcs

* update score

* fix undone name

* add back remvoed UNUSED, and match func_8007C860

* remove forgotten file

* update score 1 more time

* actually update score
2022-11-18 17:22:19 -07:00
FazanaandGitHub 83f9b88e86 Further gfx matches (#288)
* match func_800A4154

* match func_800A497C

* nonmatching func_800A8474

* match func_800A3884

* Update game_ui.h

* quick fixes

* match func_800A4F50 and func_800A45F0

* Update game_ui.h

* prelim

* match func_8009CD7C and func_800AAFD0

* nonmatching func_800AC5A4

* warning

* smilng emote

* match func_800AC5A4

* Update weather.h

* Update weather.c

* fix a buncha warnings

* Update game_ui.c

* match func_80092E94

* I know what menu_5 is now :)

* Update game_ui.c

* Update menu.c

* match func_80068514

* match func_800B695C and func_800B69FC

* match func_8000FC6C

* quick fixes

* match func_80072718

* f

* fixing particles.c

* match print_debug_strings and render_3d_billboard

* Update objects.c

* Update printf.c

* name a few vars

* match func_80011960

* match func_8002D670

* match render_floor_decal

* Update unknown_0255E0.c

* style fix

* warning sweep

* Update unknown_0255E0.c

* match func_8002AC00

* Update save_data.c

* quick fixes

* FIX BUILD

* Update unknown_0255E0.c

* screaming and paining
2022-11-17 22:25:32 +00:00
FazanaandGitHub 04bee9fc2d Get within a flea's something or other of 37% (#285)
* match func_800A4154

* match func_800A497C

* nonmatching func_800A8474

* match func_800A3884

* Update game_ui.h

* quick fixes

* match func_800A4F50 and func_800A45F0

* Update game_ui.h

* prelim

* match func_8009CD7C and func_800AAFD0

* nonmatching func_800AC5A4

* warning

* smilng emote

* match func_800AC5A4

* Update weather.h

* Update weather.c

* fix a buncha warnings

* Update game_ui.c

* match func_80092E94

* I know what menu_5 is now :)

* Update game_ui.c

* Update menu.c

* match func_80068514

* match func_800B695C and func_800B69FC

* match func_8000FC6C

* quick fixes
2022-11-15 17:45:22 +00:00
Ryan MyersandGitHub b07b0b79c9 Match a few funcs, and fix some warnings (#284)
* Squashed

* Match func_80090918

* Updat score

* Improve score

* Improve score

* Fix some warnings

* Fix a few more warnings

* Match func_80072578

* Match func_8007267C

* Update score

* Match func_80072424

* func_80067A3C matched ala David

* Update score

* Moved the function defintion to matching area
2022-11-14 10:49:35 -05:00
Antonio Castelli 689ba90944 Make Object_3C a LevelObjectEntry. 2022-11-06 20:19:11 -08:00
Antonio Castelli c254910928 Update some struct definitions. 2022-11-06 11:35:14 -08:00
Antonio Castelli f31fbfc3cf Rename some globals. 2022-11-06 10:20:40 -08:00
FazanaandGitHub bf8d3e22cf Carl sagans christmas wishlist (#278)
* match func_800A4154

* match func_800A497C

* nonmatching func_800A8474

* match func_800A3884

* Update game_ui.h

* quick fixes

* match func_800A4F50 and func_800A45F0

* Update game_ui.h
2022-11-03 17:40:16 +00:00
FazanaandGitHub b398583d6e match func_80013A0C (#273)
* match func_80077268

* Update borders.c

* Update borders.h

* game.c labels

* rename border

* match func_80068BF4 and func_80069484

* Update camera.c

* camera.c labels

* more camera.c documentation

oh god this is gonna be another one of THOSE PR's again isn't it?

* Update camera.c

* destruction

* nonmatching func_80002DF8

* make clean now removes the linker

* Update unknown_003260.c

* match func_800A0EB4

* match render_background

* fix warnings

* style fixes

* label indicator arrows in the UI

* requested changes

* struct renames

* match func_800A7B68

* Update README.md

* match func_800A5A64

* Fix unforgivable typo

sorry im not a fake fan I sware on me nan

* Update README.md

* more detailed documentation of game_ui

* match func_800A01A0

* prelim changes

* oh no

* nonmatching func_80024D54

* labbel

* fix build

* fix context warnings

* match func_800A7520

* fixes

* requested changes

* match func_80013A0C

* immediate fixes
2022-11-01 16:13:07 +00:00
FazanaandGitHub e47fc4b0ef Couple matches (#270)
* match func_80077268

* Update borders.c

* Update borders.h

* game.c labels

* rename border

* match func_80068BF4 and func_80069484

* Update camera.c

* camera.c labels

* more camera.c documentation

oh god this is gonna be another one of THOSE PR's again isn't it?

* Update camera.c

* destruction

* nonmatching func_80002DF8

* make clean now removes the linker

* Update unknown_003260.c

* match func_800A0EB4

* match render_background

* fix warnings

* style fixes

* label indicator arrows in the UI

* requested changes

* struct renames

* match func_800A7B68

* Update README.md

* match func_800A5A64

* Fix unforgivable typo

sorry im not a fake fan I sware on me nan

* Update README.md

* more detailed documentation of game_ui

* match func_800A01A0

* prelim changes

* oh no

* nonmatching func_80024D54

* labbel

* fix build

* fix context warnings

* match func_800A7520

* fixes

* requested changes
2022-10-30 19:58:59 +00:00