summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2024-01-20Irqmgr + scheduler Docs (#1527)Derek Hensley
* irqmgr docs * Sched_FlushTaskQueue * scheduler docs
2024-01-20Animation Cleanup: En_S* (#1517)engineer124
* cleanup * more cleanup * anim S cleanup * fix another function * missed one * missed another small thing * oops
2024-01-19Text Extraction + some Message Docs (#1530)Derek Hensley
* Some Decoder WIPs * Improvements * POC * Fix bss * another newline * Staff OK * Cleanup + fix progress script * script cleanup * Some docs * makefile * Extract text from extract_assets.py * More docs * Even more docs * Other message assets * Small cleanups * Clean up decoders/encoders * Message_SetupLoadItemIcon -> Message_DecodeHeader * Some more docs * Remove mkdmadata * Fade Skippable * More cmd docs * 1 left * Last notes * HS_TIMER -> HS_TIME * More general docs * Format * Note the charmap conversion for buttons in message_data_fmt_nes.h * Remove trailing whitespace * Small fixes * PR
2024-01-15General Cleanup (#1529)Derek Hensley
* Cleanup * vi define cleanup * kdebugserver * osmotor * Remove sqrtf.c * Move osFlash out of libultra * PadUtils_Destroy * BOOT_ADDRESS_ULTRA * Fault * Format * viconfig.h * More small cleanups * gfx cleanup * Format * Forgot to save * variables.h * dListTable -> dListSides * Fix header includes
2024-01-14Skybox Docs (#1534)Derek Hensley
* xml * Docs * 0s
2024-01-14ObjMure2 OK and documented (#1525)louist103
* data * OK * small docs * docs * Reloc * Format * this could have been a constexpr * fix bss * the rest of the fixes * format * revert makefile and clangformat * comments
2024-01-14Dmadata Migration (#1526)Derek Hensley
* Matching dmatable * Generate NON_MATCHING dmadata * Clean up dmamgr * Format * Ignore tools/buildtools/mkdmadata * Warnings * Use SYMS flag instead of segment name * PR + more notes * PR cleanups
2024-01-14Update ZAPD (#1533)louist103
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "2b6f459b9" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "2b6f459b9" git-subrepo: version: "0.4.6" origin: "???" commit: "???" * Update ZAPD Co-authored-by: Yanis42 <35189056+Yanis42@users.noreply.github.com> * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "572b13236" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "572b13236" git-subrepo: version: "0.4.6" origin: "???" commit: "???" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "9601f2699" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "9601f2699" git-subrepo: version: "0.4.6" origin: "???" commit: "???" * fixes for new ZAPD * readd typedefs * remov enums * Reading is hard --------- Co-authored-by: Yanis42 <35189056+Yanis42@users.noreply.github.com>
2023-11-29Cleanup External Audio Headers (#1520)engineer124
* high level audio headers * move externs * cleanup enums * small thing * rm sfxid * small fix
2023-11-28Add original asset names to all `object_p*` and `object_r*` files (#1519)Tom Overton
* Add original asset names to all `object_p*` and `object_r*` files * Respond to review
2023-11-28Organize `libc` and `libm` files (#1499)Anghelo Carvajal
* memmove * strcpy * strcmp * memset * fmodf * fix some missing includes * Remove libc header dependencies on libultra * fix * review
2023-11-27Split effect headers and a bit of cleanup (#1482)Anghelo Carvajal
* split * bss * z64eff_ss_dead.h * clean eff_blure * eff_shield_particle cleanup * tire?mark * and more cleanup * format * forgot to remove this * review * EffectBlureDrawMode enum * review * review * bss
2023-11-27`z_en_test7.c` Documentation Pass (#1497)engineer124
* copy over docs * more docs * some docs * more docs * small cleanup * more small cleanup * more small cleanup * lerp time * small reordering * feather type * general owl warp docs * more cleanup * rm redundant info * PR Review * PR Review
2023-11-27Document Actor Category Change (#1518)engineer124
* Actor Category Change * cleanup * comments * adj comment * revert small cleanup for libc64 PR * adjust comments
2023-11-27Use `CURRENT_TIME` Macro (#1514)engineer124
* use CURRENT_TIME macro * add comment * cleanup brackets
2023-11-27Organize `libc64` files (#1492)Anghelo Carvajal
* Move qrand to libc64 * use an union to avoid type punning * __osMalloc * math64.c * fixed_point.h * sleep * aprintf.h * sprintf * malloc * use original names on aprintf.c and malloc.c * qrand cleanup pass * use original names of sleep.c * og names for sprintf * more cleanup * format * fixes * whoops * use ARRAY_COUNT again * comment * Use `fu` * forgot this one * review * fix * sneak a tiny cleanup
2023-11-26Move the system heap and the framebuffers to their own segments (#1488)Anghelo Carvajal
* make segments for the systemheap and the framebuffers * define in the makefile * undefined syms * Make segments for the pre boot buffers too * Update spec Co-authored-by: Parker <20159000+jpburnett@users.noreply.github.com> * review * Update spec Co-authored-by: Parker <20159000+jpburnett@users.noreply.github.com> * Update Makefile Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * comments * comment * move comment about the hardcoded address to buffers.h * rewrite SYSTEM_HEAP_END_ADDR in terms of other symbols * Use `ALIGNED` on all the buffers * Rename SYSTEM_HEAP_END_ADDR to FRAMEBUFFERS_START_ADDR * Put ALIGNED at the right like the rest of the codebase * merge * gLoBuffer * gHiBuffer * Add a static assert to ensure the address of gHiBuffer haven't shifted without the user noticing * smol include cleanup --------- Co-authored-by: Parker <20159000+jpburnett@users.noreply.github.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2023-11-25`z_en_test4.c` Documented (#1498)engineer124
* begin docs * more docs * skybox * more cleanup * more cleanup * more cleanup * Improve comment * in-function static
2023-11-24Introduce Audio `reverb.h` (#1511)engineer124
* reverb.h * move variable * needs the size
2023-11-23Boss05 (Bio Deku Baba) OK and documented (#1510)Tom Overton
* Init, Destroy, Update, easy actions * Just the hard 3 + 1 left * One left * OK Co-authored-by: petrie911 <69443847+petrie911@users.noreply.github.com> * Data/bss in, extract colheader * Clean up externs * Better match for func_809EECBC * Sfx * Lot of naming * fix build * Name skel stuff * name limbdraws * name colliders * Document `object_boss05` * Port some names from Odolwa * Name bio baba types (and relatedly clean up EnPp) * Better names for the LimbDraw functions + some related vars * Name all functions * Name a lot of struct vars * Colliders and body parts * Name all struct vars (might come back for a few of these though) * Name most stack vars * Fragment states, ice data * Limb rot index * Damage effects * Enum for hit reactions * Enums for movement state/attack state * Finish up * Missed this in EnPp * Respond to reviews * Fix comment * Reverse order for postlimbdraw, etc. functions * Remove blank line at the top * Respond to review * Make a "getter" macro for the force detach timer * Respond to review --------- Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com> Co-authored-by: petrie911 <69443847+petrie911@users.noreply.github.com> Co-authored-by: angie <angheloalf95@gmail.com>
2023-11-23Yet another header cleanup (#1508)Anghelo Carvajal
* lights.c * z64skin_matrix.h * Move out some stuff from macros.h * gamealloc.h * move most transition functions to z64transition.h * z64lib.h * `include` cleanup on transition files * z_overlay cleanup * z64malloc.h * format * forgot to remove those * forgot this * fix borken includes
2023-11-22Animation Cleanup: En_P* (#1507)engineer124
* anim P cleanup * PR Review * PR Review * Postbox Idle
2023-11-21Move player-related function declarations to `z64player.h` (#1480)Anghelo Carvajal
* Move player function declarations to z64player.h * rename Actor_MountHorse to Player_MountHorse and similar functions * whoops * add missing includes * format * whoops
2023-11-21use og names (#1501)engineer124
2023-11-21Document `Actor_TalkOfferAccepted` (#1502)engineer124
* rename * PR Review
2023-11-18Player doc: anim wrappers (#1434)engineer124
* player cs docs setup * more docs * more docs * missed enums * more docs, but broken. Need to fix sPlayerCsModeAnimFuncs * fix * rm enum * more minor docs * PR suggestion * typo * csActionFunc * PR Suggestion * player animation * cleanup * cleanup * comments * macro * fix bss * another comment * better macro * move macro * fix bss * adjust names * simplify enum * missed flags * PR Review * adjust comment * missed defines
2023-11-17Audio Voice Decompiled (#1490)engineer124
* Add Tharo's documentation comments * Voice progress * Match osVoiceControlGain * Match osVoiceStartReadData * Cleanup * Add docs from n64devkit * WIP on osVoiceGetReadData * Add comment * Match voiceinit.c * Remove CONT_ERR, already present in controller.h * Really close to matching osVoiceStopReadData * Progress on voicecheckword * Match osVoiceSetWord * Add error codes * Matched __osVoiceContRead2... Somehow... * Add small amount of docs * __osVoiceContRead36 was basically identical from __osVoiceContRead2 * docs, but maybe a little carried away * Match __osVoiceContWrite4, Write is very similar to Read * Match __osVoiceContWrite20 from __osVoiceContWrite4, ez * Some docs * Improve osVoiceGetReadData * Match osVoiceCheckWord * currentSyllable -> currSyllable * Match osVoiceMaskDictionary * Match __osVoiceSetADConverter * Meme matched osVoiceStopReadData * small cleanup * Missed macros * osVoiceGetReadData Meme Match * Small clean-up * format * Properly split voice files from code * Use proper flags for voice files * Add basic docs for func_801A5AF0 * Import Voice Data * Update matching functions in code_801A51F0 from audio WIP * Update matching functions in code_801A4EB0 from audio WIP * Match func_801A5A1C * Match func_801A5228 * Match func_801A54D0 * Doc padmgr functions used * Match func_801A5680, it's near identical to func_801A54D0 * code_801A51F0 OK * Match func_801A4EB8 * Match func_801A4FD8 (mips2c got it matching directly) * code_801A4EB0 & all of voice, OK * Import bss * Better match for func_801A5A1C * format * Cleanup * Clean up dictionary * Introduce OSVoiceDictionary * More voice docs * Fix bss * Import code_801A4EB0 data * Introduce Word Id enum * Dictionary: u8 -> u16 * Introduce bgms * Fill in bgm enums * Rename bgm to clearer names * Fix spacing * Fix "No_Music" define * remove comment * import rodata * Improve bgm names, found another seqId function * Another seqId function * Another name change * Woods of Mystery -> Sarias Song * Fix match in osVoiceControlGain * Fix bss reordering * Fix bss file split * add saria's song bgm to pierre * Another bgm function found! * Add bgm's to `gSaveContext.seqIndex` * Fix BSS * fix bss * Fix bss * cleanup * more cleanup * cow voice weekeventflag * small cleanup * some docs * cleanup var * global * more docs * PR Review --------- Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-11-16Document Overriding Player Input (#1489)engineer124
* Override Input * cleanup * cleanup * PR Review * PR Review, fix merge
2023-11-16Fix ultratypes types (#1454)Derek Hensley
* Fix ultratypes types * Add back size_t and NULL * Callocs * Callocs pt 2 * bool * STDC version checks
2023-11-14Misc fixes 1 (#1491)Anghelo Carvajal
* Some low-hanging UB * document bug on z_file_nameset_NES.c * ALIGNED on audio data * document bug on decode * document bugs on Message_Decode * Format * More ALIGNED * Put the ALIGNED macro at the right like the other uses in the repo * review * fix Message Decode (cherry picked from commit abfbc7068816756f7ea3fa4a36ee0fe664c54c72) Co-authored-by: engineer124 <engineer124engineer124@gmail.com> * remove comments * Update src/overlays/gamestates/ovl_file_choose/z_file_choose_NES.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * format --------- Co-authored-by: engineer124 <engineer124engineer124@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2023-11-10Match `Environment_DrawSkyboxStarsImpl` (z_kankyo OK), introduce `rand.h` ↵engineer124
(#1476) * match Environment_DrawSkyboxStarsImpl * revert * PR Review * small fix * group pads together * Color_RGBA8_u32
2023-11-10Small boot cleanup (#1475)Derek Hensley
2023-11-10`ovl_En_An` OK and somewhat documented (#1457)Anghelo Carvajal
* Init and Destroy * EnAn_Update * EnAn_Draw * the overrides * func_80B54124 * two more * more funcs * SCHEDULE_CALC_TIME_ALT * moar * mor * mas * scriiiipts * mor funcs * almost everythihng * migrate data * func_80B57B48 NON_EQUIVALENT * object symbols * face * fix merge * slots * schedule result enum * func_80B57B48 * format * name some easy to name struct members * stateFlags * object stuff * accessories * text ids * more function naming * more naming * name some anims * trying to make sense out of the schedule * convert schedule to ifs * clean it up * schedule algorithm * many placeholder names * name most of the important schedule values * Add notes to every reamining schedule enum value * dec * HandleSchedule * more naming * name flags * name some of the ProcessSchedule functions * and more naming * a bit of asset naming * some typos * asset naming * more asset naming * printing code * WEEKEVENTREG_COUPLES_MASK_CUTSCENE_* * name the mouths * idk * whoops * format * Name the remaining weekeventregs from anju * name more flags * whoops * a * Incorporate SCHEDULE_TIME * format * fix merge * cleanup * remove debug stuff * clean * WEEKEVENTREG_TALKED_ANJU_IN_LAUNDRY_POOL * whoops * remove some gotos * whoops * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * review * whoops * review * ENAN_GET_8000 * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: Isghj <42048411+isghj5@users.noreply.github.com> * review * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: Isghj <42048411+isghj5@users.noreply.github.com> * fix merge * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update src/overlays/actors/ovl_En_An/z_en_an.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * review * review --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: Isghj <42048411+isghj5@users.noreply.github.com>
2023-11-07Struct Returns (#1466)engineer124
* change args * more funcs * cleanup * play cleanup * missed a file * weird warnings * missed some * fix func from honotrap
2023-11-05Fix Camera_Update fake, match Play_UpdateMain & Play_DrawMain NON_MATCHINGs ↵Alejandro Asenjo Nitti
(#1463) * Fix Camera_Update fake, match Play_UpdateMain & Play_DrawMain NON_MATCHINGS * remove unnecessary parenthesis * extra parenthesis * review * NUM_CAMS
2023-11-05Player Docs: public facing csAction things (#1459)engineer124
* public cs * comments
2023-11-02Enable `-Wint-conversion` warning (#1266)Anghelo Carvajal
* fixing some warnings * more pointer fixing * Use `-Wno-int-conversion` on audio files * more progress * fix * more pointer fixes * kinda progress * Fix remaining casts * Format * fix merge * fix warnings * fix parameter * use SEGMENT_ROM_START_OFFSET a bit more * format * fix audio warnings * some more fixes * fix en_go * review * review * whoops, missing cast * review * review * ->data * format * review * fix * asPtr * fix * Update src/code/sched.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * review * fix in EnDnh * improve format * engo * format * fix * format * Update include/z64.h Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * TexturePtr * fix warnings * fix warnings * format * fix * review --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-10-31z_kankyo Decompiled (3 non-matching) (#1451)engineer124
* z_Kankyo progress * build OK * progress * more progress * Kankyo WIP * Add docs * func_800FEAF4 * more docs * func_800FEAF4 * improve Init * Small cleanup * kankyo data * data cleanup * Environment_DrawLensFlare * Match Environment_UpdateSkybox * Match Environment_DrawRainImpl * Start on Environment_UpdateLights * Match Environment_DrawSandstorm * gRainDropDL * Some light renamings * Fix merge * cleanup * improve non-equivalents * cleanup * PR Review * match Environment_UpdatePostmanEvents * PR Review * small improvement to Environment_UpdatePostmanEvents from anon * more cleanup * void * bits * fix comment * improve Environment_UpdateLights * Skybox Stars Docs * PR Review * fix merge * macros * Add comments * PR Review * gRandFloat * bug --------- Co-authored-by: Rozelette <Uberpanzermensch@gmail.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-10-31Cutscene Camera OK (Some Docs) (#1411)engineer124
* import WIP * Match func_80161E4C * Match func_801620CC * Match func_80162FF8 * Match func_801631DC * Match func_80162FF8 * Import bss * fix bss * type docs * more docs? * waypoint? * names * cleanup * PR Review * comments * PR Review * waypoints as 1 word * adjust names * Path order * remove pathing * fix bss --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-10-29Boss01 (Odolwa) OK and documented (#1452)Tom Overton
* Boss01 (Odolwa) OK and documented * Unify existing InitRand implementations * Remove newlines after `// fallthrough` * Respond to the rest of engineer's review * Respond to most of anon's review * Try to comment the shadow thing correctly * Fix boss_01 after merge * SEGMENTED_TO_VIRTUAL -> SEGMENTED_TO_K0 * Review * Use DMG_SWORD_BEAM and update the comment in z64collision_check.h * Respond to engineer's review
2023-10-27player unions (#1453)engineer124
2023-10-27Remove `(ActorFunc)` cast on `InitVars` (#1148)Anghelo Carvajal
* Remove ActorFunc cast * Format * Revert "Format" This reverts commit a6e89b39692c22cfae26c8aa3a8fe288ccd61c32. * Messing with formatting * format header a bit * Revert "Messing with formatting" This reverts commit c8db520278d7730a83e3fbc460ebe87929c16928. * comment * format * more comments * format * format * format * properly format
2023-10-26Yet another libultra cleanup (#1384)Anghelo Carvajal
* os symbols * various variables * more variables * more cleanup * yeet HW_REG * OS_PHYSICAL_TO_K0 and other cleanups * Rename r4300.h * migrate pimgr data and cleanup on initialize.c * rename osFlash symbols * cleanup gu * vimodes * yeet rmon, do libc files * some os files * hardwareinterrupt * cleanup a lot of os files * cleanup osVirtualToPhysical * various io files * another io chunk * final io chunk * yeet hardware.h * yeet PHYSICAL_TO_VIRTUAL and VIRTUAL_TO_PHYSICAL * fix typo * fix merge * remove global.h from libultra files * fixes and format * brief explanation * review * review * review * review * SEGMENTED_TO_K0 * Revert "SEGMENTED_TO_K0" This reverts commit f8d62d670f91af401feb56489e1cbc45a1260049. * take two * bss * bss
2023-10-26Decompile Remaining code_8019AF00.c Functions (1 non-matching) (#1442)engineer124
* remaining code_8019AF00 functions * oops * decimal duration * PR Review
2023-10-26`code_80140E80` OK and preliminary documentation, Fbdemo_Wipe4 OK and ↵EllipticEllipsis
documented (#1106) * OK, start documentation * More documentation Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Decompile func_80167F0C * FbdemoWipe4 OK and documented * Mark bug in Wipe4 * More docs Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Mark bug * Few more notes * Fix function in Play * Format * Review * Name Play_PostWorldDraw * functions.h... * Revert func_80167F0C * Review * functions.h * Review * Update Wipe4 * Rename system * Format * Put skeleton back in the cupboard * bss * Fix build * rename to z_visfbuf * review * format * bss * some bss cleanup * review * bss * review --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> Co-authored-by: angie <angheloalf95@gmail.com>
2023-10-26Player Docs: csMode -> csAction (#1433)engineer124
* csAction * more cleanup * namefixer * simpleReplace * fix brackets * sneak in 2 player typos * fix merge
2023-10-23Anju objects (#1444)Anghelo Carvajal
* bring over the objects from the other branch * kafeis mask * use symbols * dman naming after assets * stateFlags * remaining stuff * anim array bug * Name everything in DmGm after DmAn * WEEKEVENTREG_COUPLES_MASK_CUTSCENE_FINISHED * undef * format * idk * ing * format * name animations from an4, thanks emil! * emptydl * disbelief * review * format * Update assets/xml/objects/object_mask_kerfay.xml Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * review --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-10-22`SCHEDULE_TIME` (#1438)Anghelo Carvajal
* SCHEDULE_CALC_TIME_ALT * add s32 cast to avoid f32 -> u16 direct cast * SCHEDULE_TIME * remove the alts * Update explanation about the script
2023-10-21Match `Camera_Battle1` (#1445)engineer124
* match Camera_Battle1 * more cleanup * more docs from OoT
2023-10-21Match `Camera_KeepOn1` (#1447)engineer124
* Match Camera_KeepOn1 * small cleanup