Commit Graph

402 Commits

Author SHA1 Message Date
coco875 2f583fdb42
cleaning camera, kart_dma, menu, math_util (#436)
* cleaning camera.h

* cleaning math_utils.h and remove space

* cleaning kart_dma

* cleaning menu.h
2023-09-22 22:00:30 -06:00
coco875 3a4b8c5a34
removing space and unused fonction (#433) 2023-09-20 17:30:22 -06:00
MegaMech 81a9c346d4
Delete courses/cup folders and rename course related files (#432)
* Move course folders

* Rename model to vertices

* Rename packed to displaylists

* Rename displaylists to course_displaylists.inc.c

* rename vertices to course_vertices

* makefile cleanup

* Rename trophy_model to ceremony_data

* move ceremony_data.inc.c to ending folder
2023-09-20 17:17:24 -06:00
coco875 f4fc23bada
Header & General Cleanup (#431)
* Header cleanup
2023-09-20 11:59:55 -06:00
Tyler McGavran 7d2fe91598
Couple matches in code_80091750 (#430)
Required fixing a problem relating to rodata. There was a missing
 balign directive causing some issues when trying to match
 func_800A9A98

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-20 11:44:36 -06:00
AloXado320 9f2330e259
Migrate some rodata files to C, for files in NEEDS_RODATA state (#427)
* Migrate some rodata files to C, for file on NEEDS_RODATA state

* clarify odd texture variable, split unused vertices

* Remove unused file
2023-09-20 11:24:43 -06:00
coco875 b97b57cd8a
Update ctx_includes.c (#429) 2023-09-20 11:11:25 -06:00
coco875 378144b35b
some renaming (#419)
* Renames
2023-09-19 12:23:12 -06:00
MegaMech 91fc8ea473
Some train decomp and move seg2 files to ending (#423)
* Some train decomp

* Move seg2 to ending/

* move racing code files into racing folder

* Fix progress

* Rename segments
2023-09-17 16:57:18 -06:00
AloXado320 3f221d6f25
Label mtx variables in GfxPool (#424) 2023-09-17 16:39:25 -06:00
Joshua Peisach 78a7d02b87
Match func_800CA730, func_800518F8 and some code_80091750 stuff (#421)
* Match func_800CA730, func_800518F8

* a few more random code_80091750 matches
2023-09-17 07:04:46 -06:00
Tyler McGavran 8233fa2aab
More audio matches (#420)
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-15 21:50:27 -06:00
AloXado320 4e583c6fd1
Fix castle ceremony pointers (#418) 2023-09-14 16:11:01 -06:00
Tyler McGavran 86c86c8bcd
Lots of matches in the audio code (#417)
* Lots of audio matches

Fully matched heap.c, lots of load.c and some stuff in seqplayer.c

Matched heap.c's BSS segement and moved some BSS stuff out of
 load.c into data.c, since that where it appears to belong
 according to SM64.

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-13 22:36:27 -06:00
MegaMech 4ee09e005f
Import bss for audio and elsewhere (#416) 2023-09-12 19:43:54 -06:00
MegaMech f20221fab6
Fix comment white-space (#415)
* Update main.c
2023-09-11 15:08:40 -06:00
MegaMech a5b7f975d2
Update main.c (#414) 2023-09-11 15:06:59 -06:00
Tyler McGavran c85a333a3f
Add new utility to calculate packed dl end and vertex count (#411)
* Add new utility to calculate packed dl end and vertex count

Requires changing a bunch of actual references to packed dl lists
 with raw numbers. Which feels extremely bad but it doesn't match
 otherwise.

Signed-off-by: Taggerung <tyler.taggerung@email.com>

* Hard code array lenghts in appropriate headers

Use macros to generate the vertex counts and packed dl end points

Heavily dependent on the array lengths being accurate. If they
 aren't stuff will break.

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-10 14:21:16 -06:00
Tyler McGavran ccfe604719
Assorted matches in audio/external (#413)
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-09 23:50:03 -06:00
Joshua Peisach b0ca74ff0d
Audio/external matches (#412)
* Match func_800C8920, func_800C8AE4, and..

Introduce struct Unk_800E9F7C and cleanup existing code

* Match func_800C40F0, add the likely other pos vars in the unk struct

* func_800C8CCC
2023-09-09 22:27:40 -06:00
MegaMech 70207db13b
Various cleanup (#410) 2023-09-09 18:01:01 -06:00
Tyler McGavran 233e9217e7
Remove undefined_syms for common_textures (#409)
* Remove undefined_syms for common_textures

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-09 11:33:20 -06:00
AloXado320 c350eddc6b
F3DEX old commands changes (#408)
* F3DEX old commands changes
    * Changed commands using gspQuadrangle to gspTri2
    * Replaced mk_quad with gspQuadrangle.
2023-09-09 01:06:35 -06:00
Tyler McGavran 7afffb63f5
Cleanup undefined_syms for all the course data (#407)
* Update building of packed_dl files

* Expose course_data symbols to linker.

* Remove undefined_syms for course data

* Update ctx_includes

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-08 22:56:49 -06:00
MegaMech 208fecdd28
Match bss for code_800029B0 and clean headers (#406)
* Match bss for code_800029B0 and clean headers

* Fix dvdl and a warning
2023-09-08 13:39:13 -06:00
Joshua Peisach b723c1be14
a few matches (#404)
* code_8006E9C0: match func_80071818

* Match 800C8F80, 800917B0, 800AEF14
2023-09-08 10:08:47 -06:00
MegaMech bba223ffa4
Match bss in podium ceremony (#403) 2023-09-07 11:44:13 -06:00
MegaMech cef186304e
Math (#402)
* Math math_util

* fix asm files
2023-09-06 20:39:16 -06:00
Tyler McGavran 9c661125be
Small matches, nothing super special (#400)
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-05 15:49:55 -06:00
MegaMech 7f7ecc5854
assorted matches (#399)
* assorted matches
2023-09-05 15:00:15 -06:00
Joshua Peisach 67fbcac9ec
Match func_8006B7E4, func_8006EEE8, func_80071A20 (#395)
* Match func_8006B7E4, func_8006EEE8, func_80071A20

* Fix missing extern void call
2023-09-05 14:38:40 -06:00
Tyler McGavran 8a2fdc21f5
Got a couple matches and a few non matchings (#397)
Also got rid of a couple asm files for functions that were matched
 a long, long time ago (thank you ItzSwirlz for finding them)

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-04 19:19:24 -06:00
MegaMech 23cfd1ca02
Match funcs in player_controller.c (#398)
* Match funcs in player_controller.c
2023-09-04 18:57:16 -06:00
Tyler McGavran 9663a66dd2
Matched a bunch of functions in code_80091750 (#396)
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-09-02 19:43:04 -06:00
MegaMech 19a056591a
Match func in player_controller.c (#394)
* Match func

* Rename to player_controller.c
2023-08-31 21:55:01 -06:00
Tyler McGavran 1646344907
Move ro/data for code_80091750 into the appropriate c/asm files (#393)
* Migrated data and rodata for code_80091750

And it even matches when built!

Minor annoyances:

There are some EUC-JP strings in `func_800A6E94` and `func_800A69C8`
 that are currently in byte form. The asm files don't get put
 through `icnov` so we can't have them as strings until they're
 parent functions are matched.

`func_8009F5E0` has the symbol `D_800E7594` replaced with the
 actual number `0x800e7594`. The symbol in question is almost
 certainly fake, but I can't figure out what its meant to be.
 So I've hardcoded it for the time being to make the migration
 possible.

* Fully match all the NEEDS_RODATA functions

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-31 21:18:13 -06:00
Joshua Peisach c4c00f1598
more audio/external stuff (#392)
* audio/external: 800C3478

* audio/external: Match func_800C98B8, func_800C9DB0

* Fix build
2023-08-31 20:28:49 -06:00
MegaMech 6562421673
some matches (#391) 2023-08-30 22:45:51 -06:00
Joshua Peisach d08a8b6b29
audio/external: 800C5384 (#390) 2023-08-30 20:59:06 -06:00
MegaMech 05d3636835
Label memory allocation with proper size (#388)
* Renamed D_8015F734 to FreeMemoryResetAnchor
2023-08-28 12:14:19 -06:00
Tyler McGavran 31d3ac14ec
Put `void` in several function prototypes (#387)
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-26 12:48:45 -06:00
Joshua Peisach b9b1d2f0c1
audio/external: func_800C357C func_800C9D0C (#386)
Signed-off-by: Joshua Peisach <itzswirlz2020@outlook.com>
2023-08-26 11:46:54 -06:00
MegaMech 0e85b1acb1
Some matches in 80027D00 (#385) 2023-08-25 22:14:08 -06:00
Tyler McGavran a755428b20
Some matches in in code_80086E70 (#384)
I really, really don't like a couple of the matches because of
 the handling of the `unk_80` member of the object struct. But
 if it matches it matches.

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-25 21:37:59 -06:00
Joshua Peisach 965d1e85b4
code_80086E70: Match 8008ACE0 (#382)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2023-08-25 21:27:49 -06:00
Tyler McGavran 0d9396b631
Make some adjustments to the SaveData struct (#381)
Also get rid of some fake variables from a bss file.

Matched a couple functions too.

Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-25 18:02:37 -06:00
Tyler McGavran a915dfcc73
3 matches in math_util.c (#380)
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-24 13:45:13 -06:00
MegaMech 0dd7133e86
Update progress.py (#379) 2023-08-22 19:31:27 -06:00
MegaMech 6e3f6aee63
Matched some funcs (#378)
* Matched code
2023-08-22 19:12:51 -06:00
Joshua Peisach 6e56638950
code_80086E70: match 8008AA3C, 8008ADD0 (#377) 2023-08-22 18:29:16 -06:00