Commit Graph

298 Commits

Author SHA1 Message Date
ChiefFruitcake bc99dedb8b
code_800AF9B0 - ghost data (#133)
* 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-09 19:24:30 -07:00
ChiefFruitcake 7acd1cbc20
More matching in code_800AF9B0 (#131)
* 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-06 20:32:57 -07:00
Tyler McGavran d6cbf56537
Add a couple header files, add some mips_to_c of some previously un-decomped 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-04 19:57:16 -07:00
Tyler McGavran c3def3e91f
Match a variety of functions, identify a struct type and some related 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-03 00:07:24 -07:00
Maciek Baron 20d9e8afba
Relabel/identify more variables and functions based on current knowledge (#127)
* Update labels and names based on current knowledge

* Create gChatacterSelections/gCharacterGridSelections distinction
2022-01-02 17:30:23 -07:00
Maciek Baron 7df6d01ef3
Add player and controller labels, rename function (#123)
* Add player labels, rename function

* Relabel controller vars to improve readability
2022-01-01 13:06:21 -07:00
ChiefFruitcake 4d9ca02750
Naming global variables related to menu navigation (#119)
* Naming of global variables related to the game menu and Controller Pak menu
2022-01-01 02:35:37 -07:00
ChiefFruitcake f250fb6e45
First decompile attempt. code_800AF9B0 (#121)
* 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-31 16:06:28 -07:00
Tyler McGavran 494c36bdb1
Match assorted functions and identify a variable (#122)
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-31 13:30:55 -07:00
Tyler McGavran ae7451596a
Texture related structs and some controller pak menu stuff (#116)
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-26 16:10:11 -07:00
MegaMech dd0b6e2ff2
decomp more 80057C60.c to reach 20 percent (#118) 2021-12-26 00:14:52 -07:00
ChiefFruitcake 1b40669f0d
Menu selection global variable (#113)
* Rename D_800E86A0 to gMenuSelection. Add menu selection options to defines.h

* Other namings
2021-12-24 20:43:17 -07:00
MegaMech b7f8765d72
Decomped more crash_screen, code_80280650, fixed import shortcut (#115)
* Decomped more crash_screen, code_80280650, fixed import shortcut
2021-12-24 20:31:54 -07:00
Maciek Baron 7a0280f0e3
Add gPlayerIsAccelerating, gPlayerBalloonCount and update related code (#105)
* Add balloon count

* Add gPlayerIsThrottleActive
2021-12-20 04:22:04 -07:00
Tyler McGavran 37d249c681
Match a couple functions related to text color (#96)
* Match a couple functions related to text color

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-19 15:47:00 -07:00
Tyler McGavran d587580bd5
Rename a couple variables (#93)
* Rename a couple variables

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2021-12-14 20:40:38 -07:00
Tyler McGavran 12be6a8824
Identified variables related to title screen demos (#92)
gNextDemoId is a little weird. If a demo is currently running that variable is the ID
 of the demo that will run next. It's never "current", its always one step ahead

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-13 14:16:35 -07:00
Tyler McGavran d324dd7f3b
Identified some variables related to sound mode (#90)
* Identified some variables related to sound mode

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-11 23:14:25 -07:00
CoderStig 46247502ad
Decomped gfx setup code & changed player pos coords to array (#84)
* Decomped gfx setup code and changed player pos coords to array
2021-12-09 14:10:39 -07:00
CoderStig 1ca7ea1061 Imported remaining .text undefined syms 2021-12-05 03:24:28 -07:00
Tyler McGavran 6d70872c5b
Identification of some race related varaibles (#78)
* Renamed time/race related variables

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-12-04 00:04:07 -07:00
Tyler McGavran 64d9b68933
Fix bad merge conflict resolution in defines.h (#72)
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-29 23:02:55 -07:00
Tyler McGavran c55c360b71
Add a structure for accessing save data (#69)
* Added  save data struct

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-28 21:44:46 -08:00
Tyler McGavran 6451db9e40
Text Color defines (#70)
* Text Color defines

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

* Updates based on comments

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-28 18:39:50 -07:00
CoderStig 632512ada9
Imported funcs from sm64 to code_80004740.c and trig_tables.inc.c (#68)
* 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-28 15:42:03 -07:00
Tyler McGavran 7387724509
Give names to some Grand Prix related variables (#67)
* 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-26 17:22:39 -07:00
Tyler McGavran 3e0bed79d3
Add defines for cup selection (#66)
* 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-23 21:19:21 -07:00
CoderStig 0ebc60103d
Another flag and explanation of CC (#65)
* Another flag and comment explaining CC
2021-11-23 13:47:26 -07:00
CoderStig bd6c82588a
Added gamemode and CC defines (#64)
* Added gamemode and CC defines
2021-11-23 13:34:54 -07:00
CoderStig f88c578b98
Added defines for Player->unk_000 bitfields (#63) 2021-11-23 04:24:12 -07:00
CoderStig 70504fb93a
Decomped 8028DF00.c (#61) 2021-11-21 00:32:04 -07:00
Tyler McGavran f6a11c734a
Found the variable that tracks the CC type selected. (#57)
Added some comments for the possible values of Mode and CC
selection

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-16 12:37:58 -07:00
Tyler McGavran 62aa193922
[kart] Variety of changes related to kart hop physics (#56)
Gave some Player struct members proper names, mostly related to kart hop physics.

Renamed a couple of tables in kart_attributes to make their purpose and nature more obvious

Matched func_8002AAC0 with its assembly representation
Matched func_800225CC with its assembly representation

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-16 12:26:40 -07:00
CoderStig f959f03184
Matched some memory.c and other (#55)
* Matched some memory.c

* And more
2021-11-16 02:39:33 -07:00
CoderStig 8ab4557b39
Split asm using autodecompiler (#49)
* Split asm using autodecompiler

* Placed libultra bss and linked more C
2021-11-05 05:17:09 -06:00
CoderStig dc1525c157
main.c full match (#46)
* main.c full match
2021-10-29 23:26:43 -06:00
CoderStig 43229c00cb
Decompiled some math_util.c (#43) 2021-10-27 14:13:08 -06:00
CoderStig 8ec9fb8b88
Start of audio decompilation (#42)
* Start of audio decomp
2021-10-27 13:48:44 -06:00
CoderStig f3788f7ac4
Decompiled staff_ghosts.c (Plus lots more) (#39)
* Decompiled staff_ghosts.c

* started on 80296A50.c

* Matched some of main.c

* Added framebuffers.c

* Added structs such as Camera
2021-10-26 11:55:42 -06:00
CoderStig 58fb53c2a4
Controller/Player struct data/bss in C (#37)
* Controller/player structs ok
2021-10-18 13:48:48 -06:00
iProgramInCpp 4c4efd28f8
Match `func_80000D3C` (renamed) and `thread5_game_logic` (#35)
* match func_80000D3C + some renames

* Improved matching for init_game().

* Match thread5_game_logic

* Added osViModeTable and osCreateViManager from libultra
2021-10-16 15:18:38 -06:00
CoderStig 157127d1f1
decomped some of code_8028DF00.s (#29)
* decomped some of code_8028DF00.s and main.c
2021-09-22 00:14:55 -06:00
CoderStig e69d8ba395
Decomped trophy & podium models. Modified gbi.h (#28)
* Decompiled trophy & podium models, fixed mk_gbi.h
2021-07-31 18:39:06 -06:00
CoderStig 830f1f3d65
Decompiled startup_logo.inc.c (#24) 2021-07-23 03:53:25 -06:00
Faris Awan 5c23113592
Match/split all of libultra (#23)
* libultra from sm64 integrated; 3 libultra functions matched

* All of libultra done!

authored-by: farisawan-2000 <farisawan.2000@gmail.com>
2021-04-27 22:35:30 -06:00
CoderStig a0e31c27ff
Decompiled course geography (#19)
* Added bss

* Decompiled course vertex data and moved packed.s

* Added recomp

* Added new line char to the end of a few audio files
2021-03-08 18:13:58 -07:00
CoderStig 5ef48aa2eb Refresh 1 2021-03-02 01:48:17 -07:00
n64 1c84a90d5e Initial commit 2020-10-14 21:13:33 -07:00