summaryrefslogtreecommitdiff
path: root/src/code_800AF9B0.c
AgeCommit message (Collapse)Author
2024-12-31Big 19750 renamesMegaMech
2024-11-14[modding] Big Update PR (#118)MegaMech
* Implement kart vehicle * Fix menu CC * Actors * variable framerate * Implement Actors vector * Fix water & scrolling textures * Finish ACoin * Refactor finishline * Refactor mtx to vector * Fix refactored screen code bugs * Fix playlist bug * Switching courses working now * Fix podium ceremony * Mostly Fix Demo and Credits * Credits Load Actors and Textures * Fix credits * Formatting * Update lus and torch * Fix water features * Fix crabs * Combine function * Fix wheels * Add Moon Jump Cheat * Wheel Change * Fix smoke due to wheel change * Fix screens for wheels * Fix transparency * Fix staff ghost * Fix lakitu transition widescreen * Rename and export credits text * Fixes --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-08-27Update decomp clang (#67)coco875
* Update menus.c (#634) * Update common_data.yml (#635) * Renames for screenId and other changes (#636) * screenId renames * Rename surface map to collision mesh (#637) * Rename some stack vars (#638) * Fix syntax error (#639) * Rename some stack vars * Update collision.c * Collision Documentation (#640) * Collision related renames * update doxygen (#649) * change bool (#644) Co-authored-by: MegaMech <MegaMech@users.noreply.github.com> * Update (#642) * Delete trig_tables_bss.c (#650) * fix typo audio (#656) * fix typo src actor (#657) Co-authored-by: MegaMech <MegaMech@users.noreply.github.com> * fix typo include (#658) * fix course (#659) * fix typo debug (#660) * fix typo data (#661) * replace number with const (#665) * fix typo buffers (#655) * fix typo buffers * tweak ld file * rename to sMemoryPool * add a warning --------- * fix typo src (#654) * fix typo src * fix non matcing * Update code_80091750.c --------- * fix typo racing (#653) * fix typo racing * get it match * replace G_LINE3D to G_QUAD --------- * fix typo src (#652) * fix ending typo (#651) * Action more info when it doesn't match and fix first diff (#662) * Update linux-compile.yml * fix first-diff * Update first-diff.py --------- * document texture of kart (#663) * document texture of kart * change screenPlayerId to screenId * some documentation around object * Revert "some documentation around object" This reverts commit cbb39078e036bf2a417bed67359e910213acab28. * more rename --------- * Make evaluate_collision_players_palm_tree better (#667) This matches just the same as before, but using those two casts instead of shifts seems more likely to be accurate to the original source code Signed-off-by: Gabriel Ravier <gabravier@gmail.com> * add fedora instruciton (#666) * start documenting animation (#668) * start documenting animation * Update course_data.c * change comment * update libultra asm (#648) * update libultra asm * fix gcc __osThreadTail --------- * Document Vehicles (#641) * start doc collision * fix merge * finish rename fonction related to vehicle * document around waypoint of vehicle * make some modification * make some change and rename one * copy_ to oldPos * doc smoke ferry and train * some rename * fix some renaming * precise index * rename a funciton * simplify waypoint_vehicles * change some name * change some name * rename move_to_point_direction * fix some conflict * Update code_80005FD0.c * Update code_80005FD0.h --------- * Label a save info loop (#645) * save info * more gcc progress * fix a value and do a rename (#669) * update clang and add action (#664) * update clang and add action * try clang on course folder only * forget two file * Update course_displaylists.inc.c * forget few other file * Update course_vertices.inc.c * format all code while get it match * second pass * format other dir * disable clang format on bad ido code * fix some tabulation * revert format on tool dir * Update clang-format.yml * ignore gbi.h * add some read me instruction * fix error * format and fixing error * Update README.md --------- * Update linkonly_generator.py (#670) * format more file * update * fix compilation issue * remove course_metadata folder * re add course metadata folder * fix banshee bordwalk crash * fix windows eurk * Update CMakeLists.txt ---------
2024-07-31Fix Buffer Overflows (#28)MegaMech
* Update code_800AF9B0.c * Update code_80005FD0.c * Update code_800029B0.c * Update code_80091750.c * Update code_80091750.h * Update code_80005FD0.c
2024-05-03Fixed more errors, we are rendering the logo, YayKiritoDv
2024-05-01WIP CompilationKiritoDv
2024-04-23Match func_800AFE00 (#631)inspectredc
* Match func_800AFE00
2024-04-23Update code_800AF9B0.c (#626)MegaMech
2024-04-17Update a couple attempts (#612)MegaMech
* Fix warning * Update a couple attempts --------- Co-authored-by: = <=>
2024-03-24Update some attempts for audio/external (#585)Tyler McGavran
Added some decompme links, also updated the attempt for a function that SpazzyLemon made progress on Signed-off-by: Taggerung <tyler.taggerung@email.com> Co-authored-by: Taggerung <tyler.taggerung@email.com>
2024-01-02Finish bss (#527)coco875
* Finish importing bss
2023-09-06Math (#402)MegaMech
* Math math_util * fix asm files
2023-04-07Match memory.c, remove warnings, fix fake matches (#301)MegaMech
* Match memory, remove warnings, fix fake matches * label switch
2022-07-05Decomp menus.c (#229)tehzz
* update m2ctx to make N64 sgi context * finish decomping menus.c
2022-06-22Split and Decompile Code_800AF9B0 (#228)tehzz
* change return type of func_8000546C * try to fix submodules * update asm_processor for new ASM directives * split code_800AF8B0 into 3 files; move rodata into files/asm * move rodata into code_800AF9B0 asm funcs * decomp func_800AF9E4 * match 800AFF58 * merge in master (renamed code_800AF9B0.c to menus.c) * revert menus.c back to code_800AF9B0.c * add bss to code_800AF9B0 * rename code_800B0350.c to menus.c * remove unused ALIGN macros
2022-06-18Match func in staff_ghosts.c and name menus file (#227)MegaMech
* name some code files * staff ghost func match * Update README.md
2022-06-14crash_screen decomp and misc (#221)MegaMech
* crash_screen decomp and misc
2022-02-13Name functions that search for 8018D9E0 entries (#161)Tyler McGavran
* Name functions that search for 8018D9E0 entries The one with "_dupe" in its name is the one that has the potential hard lock laying around * Add comment for bug in find_8018D9E0_entry_dupe Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-01-30Match OS funcs (#152)MegaMech
* Matched osSyncPrintf.c * Matched contramread.c * Matched contramwrite.c * Matched osPfsInit and osPfsGetStatus
2022-01-27Add struct for D_8018CA70 (#153)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-01-09code_800AF9B0 - ghost data (#133)ChiefFruitcake
* Match functions related to struct at D_8018EE10 * Remove asm for matched functions * Match func_800B64EC, func_800B6708, and func_800B6798 * Match func_80091EE4. Fix unused variable warnings in code_80091750.c * Name some of the fields in struct_8018EE10_entry
2022-01-06More matching in code_800AF9B0 (#131)ChiefFruitcake
* Name variables related to selecting a game from the main menu * Match a couple functions requiring jumptable * Match func_800B4728 * Match func_800B536C, func_800B5888, func_800B5AAC, and func_800B5AD8 * Name functions related to loading and validating SaveData * Match func_800B4CB4 * Update selected player defines * Match func_800B5404 * Match func_800B6088
2022-01-04Add a couple header files, add some mips_to_c of some previously un-decomped ↵Tyler McGavran
functions (#132) * Add a couple header files These files contain function prototypes for matches functions, NON_MATCHING functions, and functions used by matched functions. At this point in time those headers may contain prototypes for functions defined in unrelated files, but fixing that will have take time Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-01-03Match a variety of functions, identify a struct type and some related ↵Tyler McGavran
variables, regenerated some mips_to_c code (#129) * Meaningful commit message Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Identify another struct and array Regenerated a lot of mips_to_c code based on these identifications Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-01-02Relabel/identify more variables and functions based on current knowledge (#127)Maciek Baron
* Update labels and names based on current knowledge * Create gChatacterSelections/gCharacterGridSelections distinction
2022-01-01Add player and controller labels, rename function (#123)Maciek Baron
* Add player labels, rename function * Relabel controller vars to improve readability
2022-01-01Naming global variables related to menu navigation (#119)ChiefFruitcake
* Naming of global variables related to the game menu and Controller Pak menu
2021-12-31First decompile attempt. code_800AF9B0 (#121)ChiefFruitcake
* Decompile a couple code_800AF9B0 functions * Match func_800B34E8, func_800B44AC, and func_800B45E0 * Use sizeof in func_800B45E0 instead of hard-coded numbers * Match func_800B4520. Separate unused function func_800B4560 into new asm file * Match func_800B5B2C and func_800B6A68. Create new unused func_800B6AF8 * Match func_800B4874 and func_800B4A10 * Improve matched functions reading time trial records * Match func_800B13B0. Name variables related to data menu * Match func_800B3B58. Remove warnings due to pointer type in osEepromLongWrite calls * Rename gStartMenuCounterForDemos to gMenuTimingCounter * Match func_800B5F30
2021-12-31Match assorted functions and identify a variable (#122)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-26Texture related structs and some controller pak menu stuff (#116)Tyler McGavran
Some of this is identifying some functions and structs related to the Controller pak menu Some of it is related to structs concerning textures and "animations" and their associated functions * Match draw_box, func_80098C18, func_80098FC8 Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-24Menu selection global variable (#113)ChiefFruitcake
* Rename D_800E86A0 to gMenuSelection. Add menu selection options to defines.h * Other namings
2021-12-14Rename a couple variables (#93)Tyler McGavran
* Rename a couple variables Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2021-12-11Identified some variables related to sound mode (#90)Tyler McGavran
* Identified some variables related to sound mode Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-11Match functions for Grand Prix save data access (#88)Tyler McGavran
* Match grand prix save data funcs Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-09Match some functions related to printing text on screen (#80)Tyler McGavran
* Match some functions related to printing text on screen Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-28Add a structure for accessing save data (#69)Tyler McGavran
* Added save data struct Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-28Imported funcs from sm64 to code_80004740.c and trig_tables.inc.c (#68)CoderStig
* fixed float issue brought over from zeldaret * Import trig_tables.inc.c * Delete game_data_802BA370.s * Import two funcs from sm64 into code_80004740.c
2021-11-26Give names to some Grand Prix related variables (#67)Tyler McGavran
* Give names to some Grand Prix related variables Namely variables related to points and standings Also added some observational comments to a function or two Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Add defines for character IDs Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-23Add defines for cup selection (#66)Tyler McGavran
* Add defines for cup selection Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Change BATTTLE (3 T's) to BATTLE (2 T's) Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-23Added gamemode and CC defines (#64)CoderStig
* Added gamemode and CC defines
2021-11-23Jump Table Related Disassembly (#60)Tyler McGavran
* Part 1, Commit 1 of 24 audio/effects Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 2 of 24 audio/external Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 3 of 24 audio/heap Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 4 of 24 audio/port_eu Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 5 of 24 audio/seqplayer Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 6 of 24 code_80005FD0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 7 of 24 code_8001C4D0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 8 of 24 code_80027D00 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 9 of 24 code_800393C0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 10 of 24 code_8003DC40 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 11 of 24 code_800431B0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 12 of 24 code_80057C60 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 13 of 24 code_8006E9C0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 14 of 24 code_80071F00 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 15 of 24 code_80086E70 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 16 of 24 code_8008C1D0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 17 of 24 code_80091750 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 18 of 24 code_800AF9B0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 19 of 24 code_8028DF00 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 20 of 24 code_80290C20 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 21 of 24 code_802B0210 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 22 of 24 code_actors Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 23 of 24 memory Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 1, Commit 24 of 24 os/__osException Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 1 of 20 audio/effects.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 2 of 20 audio/external.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 3 of 24 audio/heap.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 4 of 20 audio/port_eu.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 5 of 20 audio/seqplayer.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 6 of 20 code_80005FD0.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 7 of 20 code_8001C4D0.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 8 of 20 code_80027D00.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 9 of 20 code_8003DC40.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 10 of 20 code_800431B0.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 11 of 20 code_80057C60.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 12 of 20 code_8006E9C0.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 13 of 20 code_80071F00.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 14 of 20 code_80086E70.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 15 of 20 code_80091750.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 16 of 20 code_800AF9B0.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 17 of 20 code_80290C20.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 18 of 20 code_802B0210.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 19 of 20 code_80296A50.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 2, Commit 20 of 20 memory.c Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 3, Commit 1 of 4 code_8008C1D0 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 3, Commit 2 of 4 code_8028DF00 Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 3, Commit 3 of 4 math_util Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Part 3, Commit 4 of 4 crash_screen Signed-off-by: Taggerung <tyler.taggerung@gmail.com> * Recreated disassemblies with a context file Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-16Found the variable that tracks the CC type selected. (#57)Tyler McGavran
Added some comments for the possible values of Mode and CC selection Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-05Split asm using autodecompiler (#49)CoderStig
* Split asm using autodecompiler * Placed libultra bss and linked more C
2021-03-08Added bss (#18)CoderStig
2020-10-14Initial commitn64