summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2021-11-19Sub_S Prototypes and approriate header stuff (#408)Derek Hensley
* Add sub_s prototypes * Rename limbDrawTable to jointTable * Rename UnkActorDraws * Fix warnings * Fix warnings
2021-11-18aisetfreq OK, some libultra improvements (#416)EllipticEllipsis
* aisetfreq OK * Add a lot of HW_REG and some other macros to libultra * Format * Remove extra volatile * Review * De-C guNormalize * Correct typo in crc.c
2021-11-18En_Kakasi (Scarecrow) (#279)Isghj
* EnKakasi: rebase progress into one commit * EnKakasi: fixes to get compiling on master, still doesn't match * EnKakasi: is this even progress? * EnKakasi: docs and cleaning * EnKaksi: damn it, that master merge really messed up more than I thought, after clean build something really weird is going on and now I REALLY need firstdiff * EnKakasi: Back to building, NOT OK * fixed a code * only rodata left to fix * EnKakasi: functions got removed in included functions * EnKakasi: thanks to fig mentioning there were missing cases, OK * EnKakasi: (OK) docs and cleaning * EnKakasi: Init now matches * EnKakasi: cleaning and docs * EnKakasi: more cleaning and docs * EnKakasi: forgot function declarations * EnKakasi: spec * EnKakasi: animation array symbols added * EnKakasi: formater pass * EnKakasi: type warning fix * EnKakasi: little descriptor * EnKakasi: OK thanks to AngheloAlf * Apply suggestions from code review Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Update src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Apply suggestions from code review Splitting this into pieces to not have a huge pile of bugs Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * EnKakasi: wrong type of inverse flag * Apply suggestions from code review Batch 2 Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * EnKakasi: RIP Anime * Apply suggestions from code review Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * EnKakasi: Anim enum update * EnKakasi: Removed text documentation * EnKakas: return of THIS * Update src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * EnKakasi: mystery solved but not understood * Apply suggestions from code review Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * EnKakasi: rename EnKakasi_CheckAnimateSFX to EnKakasi_CheckAnimationSfx (no real reason to shorten Animation to Animate, and SFX is not initialism, its a shorten) * EnKakasi: minor change to touch jenkins * EnKakasi: is it loise-uni? * EnKakasi: fixed skelanime changes * EnKakasi: formater pass * EnKakasi: requested changes * Update src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.h Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * EnKakasi: removed un needed pad * EnKakasi: removed redundant documentation comment Co-authored-by: isghj8 <isghj8@gmail.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2021-11-15sys_initial_check OK, documented, error message files debinarised (#437)EllipticEllipsis
* OK * Symbols and other documentation * Remove externs * spec * More documentation, decompile the texture files, some uintptr_t and size_t * Top-of-file comment * Move symbols back into right order * Use some defines * Missed an osTvType and a size_t * Add missing header to os.h * Use segment symbol macros * Remove duplicate header * Address review suggestions
2021-11-14Moves func_800CB000 to z_bg_item, decompiles func_800CB000, and documents ↵Kenix3
z_bg_item and a few DynaPolyActor struct members. (#407) * Moves func_800CB000 to z_bg_item, decompiles func_800CB000, and documents z_bg_item and a few DynaPolyActor struct members. * Adding usage of dynapoly state flag defines. * Formats z_bg_item * Update z_bg_item.c * Update z_bg_collect.c * Update z_bg_item.c * Update z_bg_item.c * Renames z_bg_item system to DynaPolyActor * Format
2021-11-14sched.h (#341)Anghelo Carvajal
* sched.h * format * screen.h * sched.h and scheduler.h * empty commit * remove screen.h * format * Fix * fix bss * remove line * Whoops * remove dupllicated structs * ... * c'mon * Add TASK_FRAMEBUFFER macro * format
2021-11-11En_Pm (#309)Maide
* En_Pm * Format * PR * a * a * Finally fixed? * PR * Fix enum
2021-11-11pfsinitpak OK (#425)EllipticEllipsis
* pfsinitpak OK * Review * Remove unnecessary if (1) {}
2021-11-11vimgr OK (#421)EllipticEllipsis
* vimgr OK * spec * OSIoMesg, add OS_MESG defines, other review * Review
2021-11-11CRC files OK and documented (#409)EllipticEllipsis
* crc.c OK and documented * chmod calc_bss.sh and add base dir to includes * Port voicecrc work, add documentation Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Add full stop * Review * Format * Add some more `!= 0`s * size_t Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2021-11-11pfschecker OK (#429)EllipticEllipsis
* pfschecker OK * Clean up contpfs a bit * Add prototype to pfs.h * Format * Update src/libultra/io/pfschecker.c Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2021-11-11Improve/Add Enums for Player, Items, and Quest (#275)engineer124
* Create enums (non-matching monkaBSS) * Add effect enum * Almost fix bss reordering (1 different word) * Fix capacity * Fully fix bss * Add PlayerBoots * PR Feedback & add missing playerForm enums * Clean-Up * Script to check global bss ordering * Bit of cleanup * Format * Remove global_bss_check PR * Fix bss * Add enums to new PRs & previously missed ones * Remove Effect Enums * Missed one * Format * Remove old prevent_bss_reordering.h comments * Use a better macro * A few more uses of enums found * Add enums to recent PRs * Improve GI enums * Add enums from new PRs * PR Suggestions * format * Fix bss * Fix mistake in GI * No actually, part of it was correct before Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com>
2021-11-10guS2DInitBg OK (#426)EllipticEllipsis
2021-11-10Transfer osViModes to C files (#438)EllipticEllipsis
* Transfer osViModes to C files * Finish spec * Import data to and Improve vi.c * spec, again * Format * Use defines for the types
2021-11-10pfsisplug OK (#430)EllipticEllipsis
* pfsisplug OK * Remove duplicate struct * Apply suggestions from code review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2021-11-08vigetcurrframebuf OK (#386)kyleburnette
* vigetcurrframebuf OK * Renamed framep to buffer throughout repo * Made tharo's suggestions * Fix functions.h
2021-11-06`motor.c` OK (#397)Anghelo Carvajal
* use motor in the spec * import bss * Delete viextendvstart.c * rename functions * move stuff and format * remove globals.h and ultra64.h * Update src/libultra/io/motor.c Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> * add motor.h to padmgr * fix Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
2021-11-05Add `stddef.h` and libc headers cleanup (#396)Anghelo Carvajal
* Move headers to include/libc * stddef * move math.h * General cleanup * move fabs, sqrtf and sqrt to math.h * move alloca and assert * whoops
2021-11-05EnvFlags OK (#404)Derek Hensley
* Matched * Remove magic number * Rename system to EnvFlags
2021-11-05xlitob.c OK (#417)EllipticEllipsis
* xlitob.c OK * spec
2021-11-05Boss_02 (3 non-matching) (#324)Maide
* Boss_02 * Fixups * Warnings
2021-11-04Texture alignment macros (#284)Anghelo Carvajal
* Add ALIGNED8 * Add designated initializer macro * Update include/command_macros_base.h Co-authored-by: rylieb <31797144+rylieb@users.noreply.github.com> * Remove braces Co-authored-by: rylieb <31797144+rylieb@users.noreply.github.com>
2021-11-04En_Floormas (#307)Maide
* En_Floormas * Format
2021-11-04En_Goroiwa (3 non-matching) (#375)Maide
* En_Goroiwa * Fix names * Params * Revert PR
2021-11-03osFlash (#158)petrie911
* some matches * Decompile code_0x80186A70 Add defines for KSEG0/1 and (Un)Cached RDRAM * format * cleanup * moved osFlash and imported data * implement fixes * format again * Update include/functions.h Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Update include/variables.h Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Update src/libultra/flash/osFlash.c Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Update src/libultra/flash/osFlash.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * returns are needed * format * Update src/libultra/flash/osFlash.c Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Update src/libultra/flash/osFlash.c Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Update src/libultra/flash/osFlash.c Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Update src/libultra/flash/osFlash.c Co-authored-by: Kenix3 <kenixwhisperwind@gmail.com> * Update src/libultra/flash/osFlash.c Co-authored-by: Kenix3 <kenixwhisperwind@gmail.com> * Update src/libultra/flash/osFlash.c Co-authored-by: Kenix3 <kenixwhisperwind@gmail.com> * should be fixed Co-authored-by: petrie911 <pmontag@DESKTOP-LG8A167.localdomain> Co-authored-by: MMDecomp <mmdecomp@gmail.com> Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> Co-authored-by: Kenix3 <kenixwhisperwind@gmail.com>
2021-11-03osspsetpc OK (#384)kyleburnette
2021-11-03pfsallocatefile OK (#387)kyleburnette
* pfsallocatefile OK * Made tharo's suggestions
2021-11-03Fireobj Kinda OK (#400)louist103
* done * format * PR fixes * revert formatting z64.h * Update warnings_build_current.txt
2021-11-03pfssearchfile OK (#388)kyleburnette
2021-11-03epirawdma OK (#391)kyleburnette
* epirawdma OK * Made tharo's suggestions * Fixed epirawwrite
2021-11-03Match `SkelAnime_GetFrameDataLegacy` (#392)Anghelo Carvajal
* Properly rename SkelAnime_GetFrameDataLegacy * Match
2021-11-03Demo_Kankyo (Lost Woods Sparkles) (#380)Isghj
* Demo_Kankyo * DemoKankyo: docs * DemoKankyo: documenting this is a pain... * found bug * DemoKankyo: docs * DemoKankyo: function renamed * DemoKankyo: docs * DemoKankyo: more docks * DemoKankyo: more docks * DemoKankyo: docs and format * DemoKankyo: requested changes * DemoKankyo: bug documented * PR feedback via docs * DemoKankyo: minor documentation and format * DemoKankyo: requested changes * DemoKankyo: removed some old comments Co-authored-by: Maide <eeeedddccc@hotmail.co.uk> Co-authored-by: isghj8 <isghj8@gmail.com> Co-authored-by: engineer124 <engineer124engineer124@gmail.com>
2021-11-03Debug display mostly OK (#399)louist103
* WIP * done? * remove something from variables.h * missed a warning * PR fixes (AngheloAlf) * fix lights * restore ZAPD makefile * format * format again * fix a graph alloc * Missed one in skin
2021-11-03Common data OK (#398)Derek Hensley
* Matched common data * Change one hex to dec
2021-11-03z_path.c OK (#379)Lucas Shaw
* z_path.c OK * Ran format
2021-11-02Rename yDistTo variables (#286)rylieb
* Change yDistTo to yDirDistTo. * Run format.sh. * Apply suggestions from code review Fix comments in header file. * Added "Surface" to yDirDistToWater. * Update names in sellnuts and skb. * Actually fix skb * Rename yDirDistToWaterSurface to depthInWater. * Rename yDirDistToPlayer to playerHeightRel. * Apply suggestions from code review Fix capitalization in header file comments. Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Fix Jenkins (Obj_Aqua). * Fix Jenkins (Obj_Etcetera). * Fix Jenkins (En_Thiefbird). * Fix misformatted files in current master. * Fix Jenkins and run format.sh. * Fix misformatted file in current master (z_debug). * Update PR to include new actors. * Update PR to include elforg, po_sisters, wf. * update actorfixer.py with variable name changes. Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
2021-11-02padsetup OK (#383)kyleburnette
* padsetup OK * Made tharo's suggestions * Made arg name consistent
2021-11-01En_Wf (#370)Maide
* En_Wf * PR * Fix make and actorfixer * Format * Warnings
2021-10-31En_Elforg (Stray Fairy) OK and mostly documented (#359)Tom Overton
* Migrate data to C * EnElforg_Init OK * func_80ACC470 OK * EnElforg_Destroy OK * EnElforg_Update OK * func_80ACCBD0 OK * func_80ACCBB8 OK * func_80ACD6EC OK * func_80ACD59C OK * func_80ACD6A8 OK * func_80ACD610 OK * func_80ACD878 OK * Declare animated materials for Elforg * EnElforg_Draw OK * func_80ACCC98 OK * func_80ACC7E4 OK * func_80ACC8D4 OK * func_80ACCEB0 OK * func_80ACC994 OK * PLAYER -> GET_PLAYER * func_80ACCE4C OK * func_80ACC934 OK * func_80ACCAC0 OK * func_80ACD2E4 OK * func_80ACD1F0 OK * func_80ACD164 OK * func_80ACD1B0 OK (maybe fakematch but oh well) * func_80ACD088 OK * Better match for func_80ACD1B0 * Use compiled reloc * Move static data to appropriate function * Name sCylinderInit appropriately * Add explanatory comment * Clean up forward declarations * Add macro for the flag * Macro and enum for type * Add STRAY_FAIRY_GET_PARAM_1C0 macro (no clue what this does) * Document the area stuff * Name some functions * Document timer and direction * Eliminate some early returns * Tons more documentation * Name remaining functions * Document flags * Name targetDistanceFromHome * fairyFountainTimer -> secondaryTimer, since it's used outside of Fairy Fountains * Name the unknown flag * Name the collider fairy type * Last bit of renaming/documenting * Remove zero check * Use hex constant for newAngle * Merge animation updates * Use 0x10000 instead of 65536.0f * Use decimal for alpha * Move yDifference initialization up to the same line as declaration * Use +=/-= * <= 30 instead of < 31 * += -1 -> -- * >= 81 -> > 80 * 0xDFFFFFFF -> ~0x20000000 * EnElforg_InitializeSpeedAndRotation -> EnElforg_InitializeParams
2021-10-29Decompile graph.c (#274)Tharo
* Decompiled, 1 non-matching, add some bss reordering helpers * Document stuff * Review suggestions * graphutil.c -> graphalloc.c * Try to fix fault callback warnings * Remove extra comments in GfxMasterList * char pad -> u32 pad Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Fix gameState Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Other suggestions Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2021-10-27En_Mushi2 (#304)Maide
* En_Mushi2 * Warnings * Fix * YOLO * Format
2021-10-27En_Ot ~~(1 non-matching)~~ (#302)Maide
* En_Ot * Fix
2021-10-27En_Tite (#318)Maide
* En_Tite * Fix
2021-10-27En_Fish2 (#292)Maide
* En_Fish2 * Fix
2021-10-25En_Giant OK and mostly documented (#346)Tom Overton
* Migrate data to C * EnGiant_Destroy OK * EnGiant_Init OK * func_80B01A74 OK * Comment what each of the quest items are * Put a little comment for myself on func_80B01A74 because it was confusing me lol * Very early names (they're all bad) * func_80B01990 OK * EnGiant_Update OK * func_80B024AC OK * func_80B023D0 OK * func_80B024D8 OK * func_80B02354 OK (this function is bad!) * func_80B020A0 OK * func_80B01EE8 OK * func_80B01E84 OK * func_80B0211C OK * func_80B02234 OK * unk_250 -> sfxId and label SFX * func_80B02688 OK * func_80B026C4 OK * EnGiant_Draw OK * Update spec * Fix up the static data * unk_24E -> alpha * Document some of the animation stuff * Name EnGiant_IsNotFreed * Document the giant types better * Minor cleanup * Add explanatory comment * Rename the functions in functions.txt too, whoops * Document sFaceTextures and blink routine * Document all the various animations * Name EnGiant_PlaySound * Document some functions and change an unknown to action * Add an SFX id I missed * Name all the action funcs * Name last two functions * Mark one case as unused * Change func_800F5A8C to use arg0, arg1, arg2, etc. * Move sFaceTextures to EnGiant_Draw and comment what they are * EnGiant_IsNotFreed -> EnGiant_IsImprisoned * Use booleans in EnGiant_IsImprisoned * **/ -> */ * action -> csAction * Make macros for all type conditional checks * Add warning about inconsistency * Document the cs actions * Add some documentation to animation-changing functions * Update the function name in functions.txt too * Improve GIANT_TYPE macros * Remove an unncessary early return * Incorporate animation changes
2021-10-24z_game_over.c (#263)Tharo
* game over * Fixes * Revert save field rename * Fix comment indent Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Add bss reordering stuff, fix bss reordering in z_scene_proc * Enum uggestions, fix item id * link -> player in enum comments Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
2021-10-24Animation system updated, some more boot files decompiled (+6%), ↵Lucas Shaw
z_fcurve_data_skelanime decompiled (1 non-matching), some asm files split, etc (#89) * 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 * remove old effects enum * gamealloc.c OK * added more files * motor.c almost done * motor.c OK * updates * migration of two files * listalloc.c oK * z_fcurve_data_skelanime split * z_fcurve_data_skelanime.c decompiled * more files split * z_malloc.c OK * contpfs.c OK * fault.c rodata migrated * migrated fault_drawer rodata * update * update preprocess.py * renamed functions in z_skelanime * started z_skelanime cleanup * like halfway through fixing z_skelanime * animation system updated to meet oot standards * remove unused animation structs * rename matrix structs to fit oot * Add -woff 712 * fix diff_settings.py because i accidentally broke it before * fixed merge conflict, doesn't match though * It matches now * Updates * Fixed warnings...added gcc code syntax checking * Remove gcc check, added in Tharo's PR * warnings fixed (i think) * fixed all warnings i think * ok * not sure what to do * Fix all warnings i think (z_en_a_keep needs some file cleanup thouguh) * it matches if i do this * remove comment * accidentally put osPfsFreeBlocks in epilinkhandle.c * memcmp -> bcmp * change u32 size to size_t size, delete string.h because it caused unnecessary confusion with defining size_t twice * format.sh * MTXMODE_NEW and MTXMODE_APPLY to matrix functions * Made suggested changes * pragma sFaultDrawerFont instead of including in repo * add some functions to functions.h * Bss reordering fixed in z_collision_check...added hack to disasm.py * Updated z_en_a_keep.c * Missed suggestion in EnAObj_Destroy * . * update z_fcurve_Data_skelanime and z_skelanime with suggestions * devmgr.c ok * minor changes * Addressed comments * remove redundant file * gfxp -> dlist in game.c * updated actorfixer.py * fixed warnings in z_malloc * Change void* back to Actor* * format * Add the soft_sprit comments back * Rename SV->Flex * remove .common * run format * Update src/code/z_skelanime.c * u32 channel Co-authored-by: Lucas Shaw <lucas.shaw1123@gmail.com> Co-authored-by: angie <angheloalf95@gmail.com> Co-authored-by: Kenix3 <kenixwhisperwind@gmail.com>
2021-10-14`z_debug` OK (#330)EllipticEllipsis
* z_debug OK * Rename function * Remove duplicate struct * Update z64.h
2021-10-12Macros: `PLAYER` -> `GET_PLAYER(globalCtx)` and `ACTIVE_CAM` -> ↵engineer124
`GET_ACTIVE_CAM(globalCtx)` (#283) * PLAYER -> GET_PLAYER(globalCtx), ACTIVE_CAM -> GET_ACTIVE_CAM(globalCtx) * formatter * PR Suggestions * `FIRST_ENEMY` -> `GET_FIRST_ENEMY(globalCtx)` * Fix merge conflicts
2021-10-12Decompile the GameStateOverlay table (#337)EllipticEllipsis
* Decomp GameStateOverlayTable * spec * Review * gSchedContext * Format * Fix bss