Commit Graph

14 Commits

Author SHA1 Message Date
MegaMech af891fdf14 Clang Format 2026-07-27 04:56:23 +00:00
quarrel07 2ccda00a89 Document and (under AVOID_UB) fix the attract timer hijacking an in-flight menu fade (#769)
Vanilla bug: pressing START on the splash screen in the last moments
before the demo timeout plays the enter chime but then drops into the
demo reel with no music. The attract timer fires while the press-start
fade is still in flight and overwrites the fade target, so the fade
completes as a demo entry instead of the main menu.

Adds a @bug comment documenting it, and guards the demo arm with
is_screen_being_faded() under AVOID_UB only, so the matching build is
byte-identical (the non-AVOID_UB path is unchanged).
2026-07-26 22:17:07 -06:00
Jed Grabman 44c71a7978 Document versus rankings and finish info (#766)
* Document versus rankings and finish info

* Document race states

* variable renames
2026-07-18 16:21:51 -06:00
Jed Grabman 3b794dcce9 Use button names (#758)
Use button names instead of bit flags
2026-03-08 21:01:24 -06:00
coco875 362f2012d0 rename some texture (#698)
* rename some texture

* ok document drifting effect and player particle

* continue rename

* push more rename

* more documentation

* minor rename test

* continue rename texture

* continue rename

* some rename

* more rename

* other fix

* fix comment

* fix a missing I

* fix a mistake

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-12-08 09:10:45 -07:00
coco875 e49fe2acfc adjust some name from pr730 (#737)
* small adjustement

* adjust some naming and other just two other in link with time trial

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-21 12:04:38 -06:00
Jed Grabman 6b08e60fe6 Document time trial input replay system (#730)
* Document time trial input replay system

Documents how the input replay system works in time trials. This is used for
* Course ghosts (on the raceways)
* Player ghosts
* Replays

* Rename ghosts/replays and minor cleanup

Refer to staff and player ghosts in time trials as replays.
Refer to the basic replay as a "post time trial replay"
Change variable / function names to reflect terminology change

* Define replay magic values

* Rename staff_ghosts files to replays

Renames staff_ghosts files to replays, since they also deal with player ghosts and post time trial replays.

Also, changes staff_ghosts_loop -> replays_loop

* REPLAY_NOT_FRAME_COUNTER -> REPLAY_CLEAR_FRAME_COUNTER

* Add replays header and format

* Update replays.c

* Name load replay functions

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-28 16:36:36 -06:00
Maciek Baron 8d4fa64f5a Document functions and variables (balloons, acceleration, a button handling etc.) (#720)
* Document various functions and variables

* Fix code changes

* Rename function based on discussion

* Identify global table of player speeds

* Improve names of functions

* Label further things related to playerIndex

* Label further balloon related things

* Document further balloon related things

* Use STAR_DURATION

* Update vars

* Fix missing arg
2025-06-10 13:59:02 -06:00
coco875 c6dcc84092 document greyscale math (#700)
* document greyscale math

* fix match

* Update menu_items.c

* Update menu_items.c

* Update menu_items.c

* Update menu_items.h
2025-05-18 14:19:43 -06:00
MegaMech 89fb420555 Match Mario Kart 64 (#709)
* Commit unpr'd matches

* fix compile

* Commit matching func_80086074

* More matches

* Fix missed labelling

* menus.c formatting

* More matches

* Match update_player_path_completion

* Formatting

* Match func_80050E34

* Match EU Audio init

* Match func_800C16E8

* Match synthesis_process_note

* Match func_80009B60

* Match

* Match cpu_use_item_strategy

* Match render_menus

* match last func
2025-05-11 18:03:50 -06:00
inspectredc 5dbcf42e95 Misc matches (#704)
* couple of matches

* match func_800C4FE4

* match func_800C284C

* match func_800C2A2C

* match func_800C3724

* match func_800C4398

* format

* format2

* remove asms
2025-04-30 10:36:02 -06:00
Alejandro Asenjo Nitti 809450525a match func_80099AEC and fix some warnings (#699)
* match func_80099AEC and fix some warnings
2025-01-24 11:18:03 -07:00
coco875 731b24eabf Doc code 80005fd0 (#697)
* Document code_80005FD0.c
2025-01-18 17:24:09 -07:00
coco875 5e1ce53a4c the big code_80091750.c rename (#684)
* some rename

* type menu

* continue rename and place const

* Renames and doc

* more

* buffer vars

* clang format

* continue rename

* some rename and get it compile (but don't match for obscure reason)

* get it match again and fix some warning

* fix all warning

* Match 6 functions

* continue rename

* load img renames and first step or label menu items

* MenuItem struct names and some rename

* rename around

* rename code_80091750 to menu_item

* clean up a little

* Update menu_item.h

* document waypoint and more

* Revert "document waypoint and more"

This reverts commit 5e6eb4fbcc.

* apply review

* Update menu_item.c

* fix some review

* rename func_8009E620 to clear_menus

* do a rename

* apply review

* finish rename normally

* more small rename

* few fix of name

* few more fix

* minor fix

* Update menus.c

* last rename normally

* Update render_menus.s

* Update menu_items.c

* Renames seg2 textures.c

* MENU_ITEMtype --> MENU_ITEM_TYPE

* remove a useless parameter

* func_80099110 --> clear_menu_textures

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
2025-01-03 17:44:23 -07:00