Commit Graph

60 Commits

Author SHA1 Message Date
Anghelo Carvajal 81b40ad296 submenu_ovl, 3 NON_EQUIVALENTs and 2 NON_MATCHINGs (#88)
* C file

* func_8085DA28_jp, func_8085DA9C_jp

* func_8085D638_jp

* func_8085D358_jp, func_8085D500_jp, func_8085D674_jp

* bleh

* func_8085BAC0_jp

* func_8085D128_jp

* Rename many functions

* mSM_move_menu

* a

* func_8085D43C_jp

* mSM_set_char_matrix

* mSM_cbuf_copy draft

* mSM_cbuf_copy NON_EQUIVALENT

* func_8085C20C_jp draft

* match func_8085C20C_jp

* cleanup unc_8085C20C_jp

* func_8085C7A4_jp ok, func_8085C7B8_jp NON_EQUIVALENT

* mSM_draw_mail NON_MATCHING

* func_8085D094_jp

* mSM_set_other_seg mSM_set_before_menu_proc

* meh

* mSM_move_Move

* migrate data

* move submenu overlays to the submenu folder and make headers for them

* name some files based on rodata strings

* name functions from known submenu overlays

* mSM_move_chg_base

* mSM_menu_ovl_init NON_MATCHING

* migrate bss

* mSM_menu_ovl_init

* SubmenuProgramId

* mSM_save_before_func

* mSM_return_func NON_EQUIVALENT

* some cleanup

* rename lots of data

* kinda format

* more cleanup

* symbolize remaining stuff

* format

* Kinda fix whatever is going on with Game_Play_unk_0110

* mroecleanup

* name known overlays

* tag_program_dlftbl, hand_program_dlftbl, haniwa_program_dlftbl

* format

* flag defines
2023-09-08 08:02:32 -07:00
Nuss e8c701eeb4 ovl_Ev_Cherry_Manager decompiled (#89) 2023-09-07 10:25:46 -07:00
Prakxo 42c2f5f743 gfxprint OK (#85)
* gfxprint OK

* refactor

* refactor 2
2023-09-04 08:35:09 -07:00
Derek Hensley 282ac6d404 Libido OK (#84)
* libido OK

* boot cleanup

* format

* renames
2023-09-02 19:42:26 -07:00
Derek Hensley 25c7beeb95 Stackcheck OK (#83)
* Stackcheck OK

* void*
2023-09-02 09:44:13 -07:00
MegaIDK 61cf267a89 ovl_Kamakura_Npc0 OK (#82)
* ovl_Kamakura_Npc0 OK

* fixed warnings

* fun names

* suggestions

* removed useless variable

* change back from bool to s32

* forgor protopye
2023-09-02 09:29:30 -07:00
Prakxo c6f7579939 sys_ucode OK (#81)
* sys_ucode OK

* add map names for rspboot variables

* fixes
2023-08-31 09:26:37 -07:00
Derek Hensley 4e4b91939f Yaz0 OK (#80)
* yaz0 OK

* boot_variables.h cleanup

* Small cleanup

* decompression abnormality
2023-08-29 18:12:49 -07:00
Prakxo a06e26eb51 debug OK (#79) 2023-08-29 09:59:38 -07:00
Derek Hensley d7338d59fc mtxuty-cvt OK (#78)
* mtxuty-cvt OK

* format

* struct approach
2023-08-28 10:02:58 -07:00
Derek Hensley 1e3511efea Fault + Fault_drawer (#77)
* Fault OK

* fault_drawer OK

* Cleanup

* Cleanup pt 2

* Forgot to save

* PR
2023-08-28 09:59:31 -07:00
Anghelo Carvajal 94c8f704af z_std_dma.c (#75)
* C file

* func_80026A64_jp, DmaMgr_RequestSync

* func_80026714_jp, func_80026814_jp, func_800269E4_jp, func_80026C4C_jp, func_80026DA0_jp, func_80026DCC_jp, func_80026E10_jp

* func_80026770_jp, func_800267DC_jp, func_80026BC0_jp, func_80026C00_jp, func_80026C28_jp

* DmaMgr_DmaRomToRam

* func_800266C4_jp, func_80026828_jp

* func_800263F0_jp

* func_80026CAC_jp

* migrate other strings

* Fix some warnings

* start renamings

* Improve func_800263F0_jp

* steal stuff from OoT

* dmaEntryMsgBufs

* name the remaining stuff

* format

* minor cleanups

* review

* format

* review
2023-08-24 11:40:56 -07:00
Prakxo d2ca0a87d8 sys_math_atan OK (#74)
* sys_math_atan OK

* accidentally didn't merge the code yaml lol

* hopefully fixed things

* add macros

* refactor
2023-08-24 11:29:27 -07:00
Anghelo Carvajal 09ac5c453d m_submenu with 3 NON_MATCHINGs and 5 unattempted (#70)
* C file

* mSM_submenu_ct, mSM_submenu_dt, mSM_submenu_move

* SubmenuArea_DoLink, SubmenuArea_DoUnlink, load_player

* mSM_submenu_ovlptr_cleanup

* mSM_move_Wait, mSM_move_PREWait, mSM_move_Play

* func_800C497C_jp

* mSM_submenu_ctrl

* mSM_ovlptr_dllcnv_sub, mSM_ovlptr_dllcnv, mSM_open_submenu, mSM_open_submenu_new, mSM_open_submenu_new2, mSM_Reset_player_btn_type1, mSM_Reset_player_btn_type2, mSM_submenu_draw

* fix warnings

* name functions referenced by check_process

* migrate data

* func_800C47B4_jp NON_MATCHING

* mSM_check_item_for_furniture, mSM_check_item_for_sell, mSM_check_item_for_give, mSM_check_item_for_take, mSM_check_item_for_minidisk, mSM_check_item_for_shrine, mSM_check_item_for_entrust, mSM_check_item_for_exchange

* rename remaining functions

* match mSM_submenu_ovlptr_init

* cleanup mSM_submenu_ovlptr_init

* match mSM_move_LINKWait?

* Rename mSM struct and other cleanups

* enums

* cleanup

* format

* move unknown struct to header

* typo
2023-08-23 10:38:41 -07:00
MegaIDK 352390e4c5 ovl_Npc_Engineer OK (#73)
* ovl_Npc_Engineer OK

* mass variable name

* suggestions

* migrate data and other suggesions

* format

* empty line

Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>

---------

Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
2023-08-23 10:06:18 -07:00
Anghelo Carvajal 4a8731d40a m_collision_obj.c OK (#64)
* C file

* func_80077620_jp, CollisionCheck_dt, CollisionCheck_clear

* CollisionCheck_OC

* CollisionCheck_Check1ClObjNoOC and CollisionCheck_Check2ClObjNoOC

* CollisionCheck_OC_Pipe_Vs_JntSph, CollisionCheck_Status_ct, CollisionCheck_Status_Clear

* CollisionCheck_OC_Pipe_Vs_Pipe and CollisionCheck_OCC

* CollisionCheck_OC_JntSph_Vs_Pipe

* CollisionCheck_OC_JntSph_Vs_JntSph

* CollisionCheck_workTrisElemCenter, CollisionCheck_OCC_Tris_Vs_Pipe

* CollisionCheck_OCC_Tris_Vs_JntSph

* a bunch

* ClObjElem_ct, ClObjTrisElemAttr_ct, ClObjTrisElemAttr_set, ClObjTrisElem_set, ClObjTris_ct, ClObjTris_set5_nzm

* fix warnings

* ClObj_ct, ClObj_dt, ClObj_OCClear, ClObjElem_OCClear, ClObjJntSphElem_OCClear, ClObjJntSph_OCClear, ClObjPipeAttr_dt, ClObjPipe_dt, ClObjPipe_OCClear, ClObjTrisElem_OCClear, ClObjTris_OCClear, CollisionCheck_setOCC, CollisionCheck_Status_set3, CollisionCheck_Uty_ActorWorldPosSetPipeC

* ClObjTrisElem_OCCClear, ClObj_OCCClear, ClObjTris_OCCClear, CollisionCheck_Uty_setTrisPos_ad

* get_type, CollisionCheck_setOC_HitInfo

* ClObjTrisElemAttr_dt, ClObjTrisElem_dt, ClObjTris_dt_nzf

* func_80076CC0_jp, func_80076D68_jp, func_80076E2C_jp

* match all

* naming

* cleanup

* cleanup

* name some members and flags

* more naming

* and more cleaning up

* idk

* migrate data

* format

* premigrate collision data in actors
2023-08-21 12:19:33 -07:00
Anghelo Carvajal 74ba3014c9 m_player_call OK (#68)
* C file

* most funcs

* initfunc and migrate data/bss

* format
2023-08-21 11:46:13 -07:00
Derek Hensley 021809c0ec syncprintf OK (#66)
* syncprintf OK

* UNUSED
2023-08-21 11:43:06 -07:00
Derek Hensley 0b49159da1 math64 OK (#67)
* math64 OK

* Header
2023-08-21 11:36:27 -07:00
Maide 7562124372 m_lights (#54)
* m_lights

* PR

* fix

* PR

* a

* Remove syms

* Rebase and PR

* Remove sym

* Fix syms

---------

Co-authored-by: Maide <you@example.com>
Co-authored-by: emilybrooks <emilybrooksemilybrooks@gmail.com>
2023-08-18 17:53:53 -07:00
Maide c863d78132 m_start_data_init (#61)
* m_start_data_init

* Fix NPC, m,atch last func

* Rebased

* Rebased

* Update struct names

* PR

---------

Co-authored-by: Maide <you@example.com>
2023-08-17 20:44:08 -07:00
Derek Hensley ae5aa8db7c system_heap (007060) OK (#60)
* OK

* Renames + cleanup

* format

---------

Co-authored-by: emilybrooks <emilybrooksemilybrooks@gmail.com>
2023-08-17 09:45:57 -07:00
Derek Hensley be86fa2c2f getcurrentms (0073A0) OK (#59)
* func_8002BFA0_jp OK

* rename

* format

* PR
2023-08-17 09:32:56 -07:00
Prakxo e5f9a888e6 qrand OK (#62)
* qrand OK

* refactor

* format
2023-08-17 09:23:52 -07:00
Anghelo Carvajal c65a8dbc39 Game renaming (#63)
* rename GameState to Game

* Rename the structs

* fix table

* whoops

* rename play parameter

* format

* undo what i messed in z64compress
2023-08-17 09:19:13 -07:00
Prakxo 1bebc761b6 sprintf OK (#57)
* sprintf OK

* format

* refactor
2023-08-16 16:39:17 -07:00
Anghelo Carvajal 647f6deed4 Bootstrap actors (#56)
* rename actors to their profile names. still need to rename thir files

* name the files of almost half the actors

* name the files of the rest of the actors

* name functions used in actor profiles

* create c files

* fix building

* fix fake symbol in ac_ball

* make headers

* bootstrap most of the stuff

* rename ovl_player_actor to player_actor

* name all the actor enums

* actor and object enums

* flags

* restore comment

* avoid building asm/lib because it can be problematic for FULL_DISASM

* format
2023-08-16 16:29:49 -07:00
Maide fca5307ea9 m_play (#50)
* m_play

* Some warnings

* lots of function renames from the gcn version

* fix warnings

* format

* a

* a

* PR

* PR2

---------

Co-authored-by: Maide <you@example.com>
Co-authored-by: angie <angheloalf95@gmail.com>
2023-08-16 11:11:19 -07:00
Anghelo Carvajal c7a746e71e Object table (#53)
* find object_table and make tool to extract it

* migrate object table

* update the assets yaml a bit

* comment

* name gameplay_keep

* change gameplay_keep to segment 4

* rename exclusive_ram_id to fit the segment used

* review
2023-08-16 10:21:44 -07:00
Prakxo 0378b87aee sleep OK (#52)
* sleep OK

* add array_count macro
2023-08-16 09:51:20 -07:00
Prakxo a2deca64d2 aprintf OK (#51)
* m_pause OK

* yeah now it's OK lol

* refactor

* refactor 2

* m_controller OK

* format

* fix size comment in game

* refactor 3

* refactor 4

* refactor 5

* add unused macro

* aprintf OK
2023-08-15 10:21:42 -07:00
Anghelo Carvajal f19df74c6e m_actor.c with 1 NON_MATCHING (#49)
* C file

* drafts

* Actor_info_ct and Actor_info_dt

* Actor_info_make_actor draft

* new_var = &argC;

* func_80057940_jp

* Actor_free_overlay_area, actor_free_check, Actor_get_overlay_area, func_80057940_jp, Actor_data_bank_regist_check

* Shape_Info_init

* Actor struct's size confirmed, Actor_malloc_actor_class and Actor_init_actor_class

* func_80056380_jp, Actor_info_part_new, restore_fgdata, Actor_info_delete

* Actor_info_draw_actor

* Actor_data_bank_dma_end_check, Actor_draw_actor_no_culling_check, Actor_draw_actor_no_culling_check2, Actor_cull_check, Actor_delete_check, Actor_info_make_child_actor, restore_fgdata_all, Actor_info_save_actor

* gSegments

* Actor_world_to_eye, Actor_position_speed_set, Actor_position_moveF and func_80057B70_jp

* Actor_player_look_direction_check

* Actor_position_move

* find m_kankyo file split

* Actor_ct

* fgName

* projection_pos_set, Actor_display_position_set

* Actor_info_call_actor

* func_80057A8C_jp

* import data and bss

* cleanups

* more cleanup

* format

* and even more cleanup

* hilite funcs

* Part_Break_init

* and more cleanup

* Actor_draw

* fake stuff

* Part_Break stuff from OoT

* a

* fix

* fix fake symbol

* fix

* fix
2023-08-14 15:35:04 -07:00
Prakxo bdb8ef6d5b m_controller OK (#48)
* m_pause OK

* yeah now it's OK lol

* refactor

* refactor 2

* m_controller OK

* format

* fix size comment in game

* refactor 3

* refactor 4

* refactor 5

* add unused macro
2023-08-14 10:20:27 -07:00
Prakxo 8aa8fb893a m_pause OK (#47)
* m_pause OK

* yeah now it's OK lol

* refactor

* refactor 2
2023-08-12 09:55:42 -07:00
Prakxo d9a77b4949 zurumode OK (#46)
* zurumode OK

* forgor to rename zuruKeyCheck

* should remove warnings

* refactor

* rename pad to mgr

* refactor 2
2023-08-10 19:49:09 -07:00
Anghelo Carvajal 0d54e2ae4c libc64.a identification (#45)
* __osMalloc

* aprintf.c

* math64.c

* qrand.c

* sleep.c

* sprintf.c

* malloc.c

* fixes

* fp and math64 cleanup

* RAD_TO_BINANG
2023-08-10 11:41:19 -04:00
Prakxo 04b31d9126 m_debug OK (#39)
* m_debug OK

* forgor to format

* replace macros for zelda64 ones

* refactor

* refactor 3

* refactor 4
2023-08-10 11:36:44 -04:00
Anghelo Carvajal 3e14e3a81f m_game_dlftbls.c (#44)
* file split

* name overlays

* sys_romcheck

* gamestate headers

* table

* renaming

* unname ovl_sys_romcheck

* move externs to game.h

* format
2023-08-10 11:03:37 -04:00
Anghelo Carvajal fd54debbf2 libu64.a identification (#43)
* identify debug

* identify gfxprint.c and gfxprint_data.c

* pad.c

* fix

* stackcheck

* loadfragment and logseverity

* mtxconv

* comment

* Revert "loadfragment and logseverity"

This reverts commit 34d8214aa3.

* review

* fix

* another fix

* fix
2023-08-09 21:21:12 -04:00
Anghelo Carvajal 56b4e612cc m_malloc.c (#41)
* match

* bss

* format

* fix
2023-08-09 20:55:50 -04:00
Anghelo Carvajal c7729c05c0 game.c OK (#37)
* C file

* game_dt

* game_ct

* fix offsets and building

* game_init_hyral and SetGameFrame

* more funcs

* game_main

* game_get_controller and func_800D2E00_jp

* Input

* game_draw_last

* a few attempts

* game_draw_first

* improve func_800D2E58_jp a bit

* format

* migrate data and bss

* what

* whoops

* name bss

* minor cleanup

* match game.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* fix malloc function wrongly named

* Update src/code/game.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* review

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-08-09 20:51:25 -04:00
Anghelo Carvajal cfa703f013 malloc.c (#42)
* malloc

* match

* bss

* Fix naming

* move __osMalloc to libc64 folder

* move headers to libc64 folder
2023-08-09 20:45:25 -04:00
Anghelo Carvajal bd0c96e418 gamealloc.c (#33)
* C file

* match file

* review
2023-08-06 14:14:33 -04:00
Prakxo 49676377a3 irqmgr OK (#28)
* irqmgr OK

* refactor

* refactor 2

* refactor 3

* refactor 5

* refactor 6

* fix yaml

* fix bss
2023-08-06 14:09:39 -04:00
Anghelo Carvajal 065751554f Bring over bss headers and bss script from MM (#38)
* prevent_bss_reordering header

* global_bss_check.py

Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>

* rewrite bss script to use mapfile_parser

* Change collections for dataclasses

* update requirements.txt

* simplify some stuff

---------

Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
2023-08-06 13:49:16 -04:00
Anghelo Carvajal 527f93aa93 padutils.c (#34) 2023-08-06 11:51:58 -04:00
Derek Hensley 6389d06ee4 ovlmgr (001640) OK (#35)
* ovlmgr OK

* sprintf

* Remove UNUSED from header
2023-08-06 11:11:16 -04:00
emilybrooks 44f0a79323 c_keyframe OK (#25)
* matched a few functions

* found some function names from the dnm+ map

* floating point hell and struct hell

* investigating skeletoninfo

* structs

* g3

* matching progress

* cKF_SkeletonInfo_R_AnimationMove_base

* lots of matched functions

* matched 2 functions

* keycalc

* rodata problem fixed

* cKF_SkeletonInfo_R_morphJoint matched

* cKF_Si3_draw_R_SV fake match

* cKF_SkeletonInfo_R_combine_translation matched

* cKF_SkeletonInfo_R_combine_rotation matched

* func_80053384_jp matched

* cKF_SkeletonInfo_R_AnimationMove_ct_base matched

* started documenting

* naming some stuff

* wrong struct size

* moved stuff to header files

* documenting

* more documenting

* comments for FrameControl done

* cKF_Si3_draw_SV_R_child fake match

* cleaning up draw functions

* imported bss

* matched cKF_SkeletonInfo_R_combine_play

* matched cKF_SkeletonInfo_R_T_combine_play

* matched cKF_SkeletonInfo_R_play

* everything matching

* cleaning up cKF_SkeletonInfo_R_play

* started on morph stuff

* cleaning up draw functions

* cleaning up structs

* trying to make pr ready

* changed wording

* review feedback

* forgot some animation pointer temps

* reverted cKF_SkeletonInfo_R_init_reverse_setspeedandmorphandmode

* review2

* fixed draw function fake matches
2023-08-05 21:51:56 -04:00
Anghelo Carvajal 94b300b0d0 m_actor_dlftbls.c (#32)
* start

* match the file

* actor_dlftbls_num

* script to extract the actor table

* bootstrap actor table

* ActorId enum

* migrate actor table

* reorganize overlays in subfolders

* Fix Player

* migrate bss

* cleanup and format

* ActorProfile

* Move player_actor to actors folder

* RomOffset

* ACTOR_ID_MAX
2023-08-05 10:58:09 -04:00
Derek Hensley 5b54707958 Viconfig OK (#29) 2023-08-04 12:02:33 -04:00