summaryrefslogtreecommitdiff
path: root/src/code
AgeCommit message (Collapse)Author
2021-05-20Misc fixes (#159)Anghelo Carvajal
* Fix `extract_assets` not properly checking if scenes files were updated * fix `first_diff.py` path due to the baserom renaming * FlexSkeletonHeader and other stuff * fix some SkeletonHeader instead of FlexSkeletonHeader * Add blob compilation to makefile * CURRENT_DAY and type swaps * Remove extra cast * run format * zbanks suggestions
2021-05-19z_view matching (#134)Zach Banks
2021-05-18code_0x8017FEB0 OK (#137)Anghelo Carvajal
* almost every function * atans ok * import data and rodata * format `atan_first_8th_array` * fix signature and rodata * rename to angle * Rename the functions to match their OoT counterparts * rename code_0x8017FEB0 to sys_math_atan
2021-05-18Fix all warnings raised by IDO (#152)Zach Banks
* Fix all warnings raised by IDO, ignore trailing commas * Set -woff=624,...; keep const in printf functions * Remove redefined macros in irqmgr.c * Remove DECR macro & reformat * Address PR comments from AngheloAlf
2021-05-18Format everything (#141)Anghelo Carvajal
* Add trailing comma * Run format and add some missing trailing commas * Enforce the same clang-format version for everybody * z_en_m_fire1
2021-05-09Scene Changes (#114)Zelllll
* match function * major cleanups * rename switch functions * use graph_alloc to fix fake matches * more documentation * more matches, lots of changes * lots more work * format * Update z_scene_proc.c * very hard lagrange interpolation function OK! * remove any remaining * documentation done, only two functions left * a few more things * one function left! * document another oot leftover * last function decompiled, not matched yet * scene_proc complete * start work on z_scene * done with z_scene * remove unessecary typedefs * fix some things to remove warnings * Add z_scene_table and decomp data * Delete ctx.c * add draw cfg enum * cleanup * most scene table functions done * done for now * all scene files done * Update include/z64scene.h Co-authored-by: Anghelo Carvajal <anghelo.carvajal.14@sansano.usm.cl> * add missing macros * fix some renames * scene texture file rename * added temporary structs so it still builds * more structs * even more old structs * fix boyo * should fix compile error * lets hope nothing broke * ub comment back Co-authored-by: Anghelo Carvajal <anghelo.carvajal.14@sansano.usm.cl>
2021-05-01(Mostly) Decompile PreRender.c (#105)Zelllll
* start prerender * match func_8016FDB8 * fix fake af match * actually add prerender * Delete ctx.c * test * lots of oot transfers * lots of new functions done * match even more functions * slowly thread functions * two prerender functions left * some docs * make names more consistent with oot * ready for pr? * Update PreRender.c
2021-04-29Adds in scene support (#117)Kenix3
* 1 scene done, Z2_SOUGEN OK * All scenes OK * Makefile improvements * Use WIP ZAPD branch as submodule * Add spawn rotation flag macro * Fix bad merge * Move scenes to be in their own subfolders * Rename and restructure extracted baserom files * Progress tracking for assets * Add asset progress to csv * Use master ZAPD * Use distclean like in OOT * Fix up a few things with the makefile * Fix scenes not being dumped from ELF Co-authored-by: Rozelette <Uberpanzermensch@gmail.com>
2021-04-19sys_slowly OK (#101)Rozelette
* sys_slowly OK * Feedback * rename type member
2021-04-18DoorAna: OK (#90)Isghj
* DoorAna: OK * DoorAna: changed z_lib functionname to match new master * DoorAna: requested changes * DoorAna: requested changes * DoorAna: Renamed nextEntranceIndex * DoorAna: some changes requested Co-authored-by: isghj8 <isghj8@gmail.com>
2021-04-12z_skin_matrix OK (#81)Rozelette
* Set up file * Rename * z_skin_matrix OK * Cleanup * /n nits
2021-04-07z_lib fully matched (#85)Rozelette
* z_lib OK * Documentation * Added stdbool and stdint * Fixup for new names * Fixup bad merge * Feedback * Use u/s32 for intptr_t
2021-03-27z_en_item00 (#78)Rozelette
* z_en_item00 WIP 17/21 match, rest close to matching * Split .rodata for z_en_item00 * Item00 documentation, some misc cleanup * Minor cleanup * Fixup for z_collision_check * Address feedback * Delete old file * Fix bad merge
2021-03-27Some OOT transfers, some renaming, etc (#75)Lucas Shaw
* Progress on various files * gfxprint stuff * split some rodata, add iconv for rodata string parsing * z_std_dma rodata * 2 nonmatchings in gfxprint * mtxuty-cvt ok * more * match a function in idle.c * progress * Cleanup * Rename BgPolygon to CollisionPoly * progress * some effect stuff * more effect progress * updates * made suggested changes * z_effect_soft_sprite_old_init mostly ok Co-authored-by: Lucas Shaw <lucas.shaw1123@gmail.com> Co-authored-by: Rozelette <Rozelette@users.noreply.github.com>
2021-03-27z_lights fully matched (#80)Rozelette
* z_lights OK * Documentation * Fixup for z_collision_check * Improve function types of bind functions * Fixup for types
2021-03-27Bg_Lotus OK (#86)Rozelette
2021-03-27TwoHeadArena and TwoHeadGfxArena OK (#83)kyleburnette
* TwoHeadArena and TwoHeadGfxArena OK * Changed negatives to ~ in TwoHeadArena.c * Renamed functions to match OoT * Formatted code files * Removed dispbuf
2021-03-27Door_Spiral OK (from zel) (#87)Rozelette
* Door_Spiral OK * Cleanup
2021-03-24EnPoFusen: OK (#69)Isghj
* EnPoFusen: OK EnPoFusen: WIP EnPoFusen: init is matched * EnPoFusen: requested changes * Update src/overlays/actors/ovl_En_Ma4/z_en_ma4.h Co-authored-by: Rozelette <Rozelette@users.noreply.github.com> * EnPoFusen: forgot I renamed a function to check diff, changed back * EnPoFusen: Bad search and replace * EnPoFusen: really bad search replace * EnPoFusen: ColliderInit and requested changes * Functions: renamed func_800B8EC8 to Audio_PlayActorSound2 Co-authored-by: isghj8 <isghj8@gmail.com> Co-authored-by: Rozelette <Rozelette@users.noreply.github.com>
2021-03-22z_collision_check.c (#58)Tharo
* setup * Progress on z_collision_check.c * Further progress on z_collision_check.c * renamed code_0x800E03A0 to z_collision_btltbls, z_collision_check.c decompiled besides bss * Structs changes * Document functions * overlayhelpers folder, colliderinit.py and ichaindis.py * Flags, format existing ColliderInits * Fix merge * Few more small improvements * Review suggestions
2021-03-16yaz0.c OK (#71)Rozelette
2021-03-16Decompiles z_vr_box (from zel) (#73)Kenix3
2021-03-11functions and variables headers cleanup (#63)Tharo
2021-03-10Initial support of tracking progress per code/boot/overlay, and outputs the ↵Kenix3
stats to csv.
2021-02-28Add OoT actor structs and enums (#55)Zelllll
* add oot structs * revert formatting * fix comment thing * fix accidental renames * slight fix * naviEnemyId -> hintId * fix headers
2021-02-23pragma variant for GLOBAL_ASM (#49)Tharo
* pragma GLOBAL_ASM * Revert split_asm.py arg description change
2020-10-11Arms_Hook OK (#33)fullgrowngaming
* All but 2 functions matched * More work on hookshot * hookshot work * 2 functions left (and one is almost done) * sp issues with draw, but matching otherwise * hookshot matching * Changed rodata inclusion for armshook * Hookshot OK * Resolve script conflicts * Rename unk variables to match MM standard * Made requested changes
2020-10-11z_skelanime OK (#34)fullgrowngaming
* initial skelanime commit * Skelanime OK * Forgot to add z64animation.h and skelanime.c
2020-09-27GlobalContext: unwrap CameraContext (#31)Bonfam
* GlobalContext: unwrap CameraContext Makes ACTIVE_CAM macro usable. func_8013A530 changes to use new GlobalContext struct. * z64.h: remove CameraContext
2020-09-27z_actor_dlftbls.c OK. Rework a bunch of segment address organization. (#29)Rozelette
2020-09-13Bootstrap actors (#14)Rozelette
* Bootstrap actors * Address feedback. Improve header guard. Remove ovl_Player_Actor, it will need to be handled seperately.
2020-08-31Split headers to be more similar to OOT (#13)Rozelette
2020-08-29Decompile z_snap (#11)Rozelette
2020-08-07Add object enum (#9)Rozelette
2020-08-06Cleanup some function identifications. (#7)Rozelette
* Add missed functions, remove not functions * Fix typo
2020-08-06Add actor and scene enums (#8)Rozelette
2020-07-24Initial code formatKenix3
2020-06-23Merge branch 'master' of https://github.com/zeldaret/mmKenix3
2020-06-23func_800B72F8 decompiledRafael Moura
2020-06-23Decompile `game.c`MMDecomp
2020-06-06Adds TODO comments to remove implementation defined pointer manipulation.Kenix3
2020-06-04z_lib now uses SEGMENTED_TO_VIRTUAL macroKenix3
Additionally removed some TODO comments in z_scene and defining gRspSegmentPhysAddrs array size as NUM_SEGMENTS
2020-06-04Added macros headerKenix3
Additionally, updated code to use PHYSICAL_TO_VIRTUAL and ALIGN16 macros. Additionally, retyped gRspSegmentPhysAddrs back to u32 as in OOT. These get the straight return value of PHYSICAL_TO_VIRTUAL, so they are u32.
2020-06-04Fixes known undefined behaviour from DmaMgr and Lib_Ptr taking u32 rather ↵Kenix3
than void*
2020-06-04All z_scene functions now OKKenix3
2020-04-29z_scene functions now use the same structs as OOT (#3)Kenix3
* z_scene now uses OOT structs where available Additionally commits a decompiled z_actor function. * Fixes audio_setBGM function call in Scene_HeaderCommand15 * Update structs.h Co-authored-by: rozlette <uberpanzermensch@gmail.com> Co-authored-by: Egor Ananyin <ananinegor@gmail.com>
2020-04-23Decompile z_prenmi.crozlette
2020-04-22Decompile z_rpc.crozlette
2020-04-21Some work on z_viewrozlette
2020-04-21Fix build issuerozlette