summaryrefslogtreecommitdiff
path: root/src/main.h
AgeCommit message (Collapse)Author
2025-01-23Game.cpp and World.cpp Cleanup (#159)MegaMech
* Remove CProperties and delete dup Properties from World.h * Improvement * Fix compile * Cleanup * Document gRaceState * wip cleanup * compile * Impl PlayerBombKart * Rename CourseManager_ to CM_ * Finish renames m_ to CM_ * cleanup * Remove extra printf --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-11-15[modding] Implement jumbtron fb effect (#125)MegaMech
* Update Engine.cpp * minor fix and update LUS (#119) * minor fix and update LUS * update torch * Update torch * Implement jumbotron framebuffer effect * Update skybox_and_splitscreen.c --------- Co-authored-by: coco875 <59367621+coco875@users.noreply.github.com> Co-authored-by: Adam Bird <archez39@me.com>
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-09-10[enhancement] Disable Culling (#58)coco875
* less intrusif possible way to disable culling * forget cloud and star * some change and add gFarFrustrum * reduce range of gFarFrustrum * minor rename of a CVar --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-09-10[enhancement] Freecam (#56)MegaMech
* Create noclip.c * Create noclip.h * Update camera.c * Update render_courses.c * Update ImguiUI.cpp * Freecam Done * Add smoothing to window * Update freecam * focus player * fix * Update freecam.c * Update freecam.h * Update render_courses.c * Update FreecamWindow.cpp * Update Engine.cpp * Move vars --------- 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-26Renames & seg 3 & 5 texture fixes (#19)MegaMech
* Remove tools/torch * Auto compile torch and extract * Re-implement soh's implementation of lus implementation of an array * Fix static actors in mr * Update * Updated torch * Updated lus * uncomment * Fix collision * Renames * More renaming * Collision Renames * Update collision.c * Collision Documentation (#640) * Collision related renames * Update * update lus * Bug fixes * remove tabs * fixes * fixes * Fix kart textures * Networking * net * Add networking * Update * Cleanup * Fix balloon rendering * Fix lakitu and red shell * fixes * Implement new random system --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-05-03Fixed more errors, we are rendering the logo, YayKiritoDv
2024-05-03Update main.hMegaMech
2024-05-01WIP CompilationKiritoDv
2024-04-20Header cleanup and some renames (#616)MegaMech
* Place macros for addr conversions * dl renames * fixes * changes ok * Delete types.h * move enums
2024-04-15Initial gcc Support (#568)MegaMech
* Added GCC
2024-04-06Rename cpu behaviour related symbols (#586)coco875
* Rename cpu related symbols
2024-04-05trig tables shiftable (#596)MegaMech
2024-02-05Code Segments Shiftable (#566)MegaMech
his PR cleans up segment related code in main.c. Also cleans up the linker a bit. Add memory pool to linker as .bss to validate that it exists properly. Move framebuffers, gfx, and audio buffers out of racing segment and make its own segment. Rename framebuffers.c to buffers.c as it contains more than just framebuffers. Import asserts from sm64 to validate that code segments are not overlapping Rename segNoload to segmentNoload Rename 802BA370 segment to trigTables Rename gMenuSelectionFromEndingSequence to gGotoMenu Rename gMenuSelectionFromQuit to gGotoMode Rename SEG_ENDING_SEQUENCES to SEG_ENDING Rename data_821D10 to ceremonyData Rename data_825800 to startupLogo
2024-02-05Match (#562)MegaMech
2024-01-06some const placement and one rename (#529)coco875
* some const placement and one rename
2024-01-02Finish bss (#527)coco875
* Finish importing bss
2023-12-31fix todo, bug not appears and change theme (#525)coco875
* fix todo, bug not appears and change theme * fix warning
2023-11-07More audio stuff (#488)Tyler McGavran
* Match create_next_audio_frame_task Required some variable renaming and other changes * Match synthesis_execute I'm not entirly sure about the way we have stuff ifdef'd in PR/abi.h. I feel like we're doing something slightly wrong there * Match synthesis_do_one_audio_update There's something super fucked with the way our ifdef's work in abi.h. It is going to demand a lot more attention sometime in the future. * Rename a couple functions Also had to hack up the ABI file a bit. I'm convinced that we don't need nor want to have the EU/Shindou/US split thing the SM64 code does. There's probably just the 1 ABI version being used and we need to figure out what it looks like Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-10-27Place variables from data_0DD0A0 to code_800029B0 (#477)Tyler McGavran
They match when placed there, although its not immediately clear that they truly belong there. But a match is a match. Also cleaned up a bunch of .h files that had references to the newly matched variables. Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-10-09Rename wayPoint to waypoint (#448)MegaMech
* Rename wayPoint to waypoint * other
2023-09-20Header & General Cleanup (#431)coco875
* Header cleanup
2023-09-17Some train decomp and move seg2 files to ending (#423)MegaMech
* Some train decomp * Move seg2 to ending/ * move racing code files into racing folder * Fix progress * Rename segments
2023-09-17Label mtx variables in GfxPool (#424)AloXado320
2023-09-12Import bss for audio and elsewhere (#416)MegaMech
2023-09-08Match bss for code_800029B0 and clean headers (#406)MegaMech
* Match bss for code_800029B0 and clean headers * Fix dvdl and a warning
2023-08-28Label memory allocation with proper size (#388)MegaMech
* Renamed D_8015F734 to FreeMemoryResetAnchor
2023-08-26Put `void` in several function prototypes (#387)Tyler McGavran
I have historically made prototypes for argument-less functions with just plain `()` for the argument list. This has caused some minor pains when using `m2c` and is, pendatically, incorrect. So I have changed all argument-less function protoypes to instead have `(void)` as the argument list. This required a couple small fixes here and there.
2023-08-22Matched some funcs (#378)MegaMech
* Matched code
2023-08-15Bumped Total Progress Script by 1.04% (#371)MegaMech
* Matched camera.c
2023-08-09Add crash screen enhancement (#360)MegaMech
* Add crash screen enhancement
2023-08-09Matched code_80091440.c and named gDemoMode variable (#358)MegaMech
* matched code_80091440.c * Named gDemoMode * Remove asm for matching func * Matched and namings for random_u16_credits func in code_80280650.c
2023-08-04very cool debug display list (#348)tomas
* added a very cool debug display list ^^ (prints variables to screen) * Decompiled various functions
2023-04-18Various documentation (#309)MegaMech
* Various matches * Various documentation * fix
2023-04-10Various matches (#304)MegaMech
2023-04-07Match memory.c, remove warnings, fix fake matches (#301)MegaMech
* Match memory, remove warnings, fix fake matches * label switch
2023-03-29Massive data relocation (#295)Tyler McGavran
Mostly relocating rodata from data/* files to the appropriate asm/nonmatching/* files, although there is some plain data relocating to be found in here too. Big change to note is the addition of the code_802AAA70.c file, split from memory.c. Based on some padding in the ro/data for memory it seems clear that a split is needed, although it is not clear that exact spot chosen for the split is correct. Still, it gets the file padding for the ro/data and text segments correct so it can't be too wrong. Also included is an update to the asm_processor tool to support the .hword directive. I made a PR to the main repo of that project with an identical change and it was accepted. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-08-25Add lots of headers (#252)Tyler McGavran
* Add a lot of header files Did my best to move all relevant function prototypes and external variable declarations into the header files too. Matched a few functions in the process * Updated progress.py Some of the listed files/folders have been deleted/renamed, so I reflected those changes in progress.py Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-07-15Document game state related logic (#244)MegaMech
* Document game state logic * More namings
2022-07-11Split out some unused asm and documented main.c (#242)MegaMech
* Splitting out unused asm * Documented main.c
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-05-20Update and add some header files (#205)Tyler McGavran
* Update header files for main, memory and math_util * Required updating func_802A82E4 to keep the match Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-01-09Update the GfxPool struct and match some functions (#134)Tyler McGavran
* Update the GfxPool struct and match some functions Also reordered variables.h a bit * Match 2 more functions * Replace reaming ->buffer references with ->mtxPool Update the mips_to_c output of a couple functions based on new GfxPool definition Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-16Matched some memory.c and other (#55)CoderStig
* Matched some memory.c * And more
2021-10-29main.c full match (#46)CoderStig
* main.c full match
2021-03-04Matched config_gfx_pool and rendering_init (#17)Duncan
* Match config_gfx_pool * Label function and remove non-matching asm * Match rendering_init * Remove warnings from previous work * Label offsets as per sm64
2021-03-02Refresh 1CoderStig