summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2024-04-28Rename yDistToWater -> depthInWater (#1950)cadmic
* Rename yDistToWater -> yDistUnderWater * yDistUnderWater -> depthInWater
2024-04-22Player Docs: Control stick buffers (#1945)fig02
* name vars and add enum * name some spin attack stuff * fix right and left * forward/backward * format * fix retail bss * sControlStickWorldYaw
2024-04-17Player Docs: "sUpperBodyIsBusy" (#1944)fig02
* document upperbodybusy * change wording for comment and rename upperanimblendweight * format * review
2024-04-15Player: Document "WaitForPutAway" (#1936)fig02
* document put away delay * functions.txt * add a note on delaying indefinitely * format * typo * delay -> wait for put away * revert unintended formatting change * add comment to struct member * format * fix functions.txt
2024-04-14Match retail BSS ordering (#1927)cadmic
* Match retail BSS ordering * Revert moving some global variables to headers * Adjust block numbers after header changes * Fix debug build * Overlay bss ordering * Fix BSS ordering after header changes * gc-eu-mq OK * Implement preprocessor for #pragma increment_block_number * Transfer usage comment from reencode.sh * Use temporary directory instead of temporary file * Move ColChkMassType back
2024-03-24targetActor -> talkActor (#1933)fig02
2024-03-23Extract unused scene headers (#1930)cadmic
* Extract unused scene headers * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "1300a4f36" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "1300a4f36" git-subrepo: version: "0.4.6" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "110b9eb" * Add more unused arguments to CS_LIGHT_SETTING
2024-03-23Document Player's Face and z_actor FaceChange functions (#1928)fig02
* create some enums * gonna try struct instead of array * struct works. add docs too * inline function comments * fix function comment * name faces, move enums * rename textures * outnames * remove comments * change comment slightly * fixup face comments * review * offset comments * add and use PLAYER_FACE_MAX * typo * more comment on blinkDuration * another change to the comment
2024-03-04Colliders: change "touch, bump" to AT and AC (elems) (#1637)Dragorn421
* toucherFlags, bumperFlags -> atElemFlags, acElemFlags * TOUCH_ -> ATELEM_ * BUMP_ -> ACELEM_ * ColliderElementTouch,Bump -> ColliderElementDamageInfoAT,AC * toucher,bumper -> atDmgInfo,acDmgInfo * Update docs and zcolchk funcs names * run formatter * remove the last mentions of "bump" for colliders * Update renamed functions in disasm
2024-03-01Introduce extracted/VERSION, with text extracted there (#1730)Dragorn421
* Introduce assets/_extracted/VERSION, with text extracted there * move to `extracted/text/` * Update gitignore s * rework args for msgenc.py * put mkdir with others, until theyre all moved at once * move 0xFFFC back to being extracted, making it use specific macro `DEFINE_MESSAGE_NES` to handle its special behavior * prettier gitignore * Move messages 0xFFFC, 0xFFFD to committed message_data.h
2024-03-01No longer use asm-processor (#1824)Dragorn421
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "b3bfa14cf" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "b3bfa14cf" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * use CS_FLOAT * update csdis * update committed csdata * finish updating csdis.py * add script to reextract committed csdata * dont use asm-processor, use iconv for reencoding utf8 to eucjp * remove asm-processor csdata usage remnants * --cs-float hex * delete tempfile at end of reencode.sh (may want to rm even if compilation fails though?) * comment reencode.sh * comment CMD_F * do not break permuter guessing compile command, by not reencode.sh-wrapping compilation under PERMUTER (thanks anghelo) * fix the permuter fix * pad -> sBssDummyNeg1 * reencode.sh: rm tempfile on script exit (including on error) * renumber sBssDummy vars in zcolchk from 0 * Revert "--cs-float hex" This reverts commit 85267dc348741b67ac9c12eb60e1e764793d0bb6. * Revert BSS changes * Add linemarker to reencoded files for better error message * fix audio/general.c bss * make reencode.sh work on macOS * touch up csdis, csdis_re --------- Co-authored-by: cadmic <cadmic24@gmail.com>
2024-02-29Some GCC flags improvements (#1903)Tharo
* Some GCC flags improvements * Move -fno-reorder-blocks -fno-zero-initialized-in-bss to assets only * Add -fno-PIC since some gcc versions use -fPIC as default * Enable builtin functions on gcc, with appropriate changes to missing_gcc_functions.c and ultra64/libc.h * Move -fno-merge-constants -mno-explicit-relocs -mno-split-addresses to overlays only as they are only needed there for reloc reasons * Remove unneeded casts in missing_gcc_functions.c * Change gcc assets flags handling
2024-02-29Use Romfile in place of vromStart and vromEnd in structs (#1742)Derek Hensley
* KaleidoMgrOverlay * GameStateOverlay * ActorOverlay * EffectSsOverlay * MapMarkDataOverlay * Missed DEFINE_ACTOR_UNSET * ROM_FILE_UNSET * DEFINE_OBJECT_EMPTY * DmaEntry * ACTOR_UNSET * romfile.h * newline * Format
2024-02-27Remove gSystemHeap and use _buffersSegmentEnd instead, make buffer ↵Tharo
alignments explicit for gcc (#1901) * Remove gSystemHeap and use _buffersSegmentEnd instead, make buffer alignments explicit for gcc * ALIGNEDn -> ALIGNED(n), reposition alignment attribute for PreNmiBuff * Correct positioning of ALIGNED for filter data in audio/lib/data.c * Add ALIGNED to TypenameMacros * ALIGNED(4) on same line for PreNmiBuff * Revert audio load.c change, to be submitted separately
2024-02-27Restore terminal colors in retail, except in __osMalloc.c (#1899)cadmic
2024-02-27Filename & line number args cleanup (#1891)Tharo
* Filename & line number args cleanup * Use int for line number args over s32/u32 * Add missing const qualifiers from filename args * Fix gcc warning in game.c * Add comment to weird assignments in GameState_Init
2024-02-27Match retail code data sizes (#1741)cadmic
* Match retail audio data * Fix various small code data problems * Disable terminal colors in debug builds * Match z_actor_dlftbls.c .rodata * Use _3 for unused nameString macro parameter * Move sDebugCutsceneScriptBuf to be in-function static * Comment on actor name being NULL * Split out padding the fault_drawer.bss.s
2024-02-20Fixup permuter_settings (#1746)Dragorn421
* fix how permuter imports PRINTF macros wrt the ido-has-no-variadic-macros hack * more permuter_settings fixups
2024-02-12Rework disassembly: out of makefile, separate sections, relocs (#1728)Dragorn421
* Rework disassembly: out of makefile, separate sections, relocs * another nice print * fix type hints for python 3.8 dinosaurs * reencode from utf-8 to euc-jp (iconv) before assemble * Add "include guards" to macro.inc * For producing the expected file object files, assemble sections together instead of linking together the individually assembled sections * review * fixup * require spimdisasm >=1.21.0 * remove assembling sections individually (for now) * uppercase encoding names (standard)
2024-02-07Match retail z_sram.c (#1722)cadmic
2024-02-03Match compression for gc-eu-mq (#1704)cadmic
* Improve compression * Format * Typo * Use Python assignment expression in tools/dmadata.py Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Review decompress_baserom.py * Replace DEFINE_DEBUG_SCENE with CPP defines * Pass is_zlib_compressed instead of version * Reword NOLOAD comment in write_compress_ranges * Remove redundant comment --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-02-03Give debug_malloc.c the same treatment as system_malloc.c and z_malloc.c (#1700)cadmic
2024-02-02Match retail __osMalloc.c (#1684)cadmic
* Match retail __osMalloc.c * Add TODO about N64 ArenaNode debug info * FLAG prefix -> FLAG suffix
2024-02-02Match retail system_malloc.c and z_malloc.c (#1683)cadmic
* Match system_malloc.c and z_malloc.c * Rename CHECK_POINTER
2024-02-02Match retail logutils.c and z_locale.c (#1699)cadmic
* Match retail logutils.c and z_locale.c * Update src/boot/logutils.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2024-02-02Match retail code_800D31A0.c (#1698)cadmic
2024-02-02Match retail z_skin.c, z_skin_awb.c, z_skin_matrix.c (#1697)cadmic
* Match retail z_skin_matrix.c * Match retail z_skin_awb.c * Match retail z_skin.c * Remove same-line hacks
2024-02-02Match z_debug for retail (#1694)fig02
* match z_debug for retail * prototype * directive
2024-02-02Match retail padmgr.c and sys_rumble.c (#1693)cadmic
* Match retail padmgr.c * Match retail sys_rumble.c * Poke jenkins
2024-02-01Match retail Title and Sample gamestates (#1692)fig02
* match title and sample * change to directive * no bad return
2024-02-01z_play retail OK (#1688)engineer124
* z_play OK * cleanup spacing * PR
2024-02-01Match sys_matrix.c (#1682)cadmic
2024-02-01Retail z_scene matching (#1677)fig02
* one left * cursed match for Scene_CommandObjectList * format * revert printf modification for permuter * more bad-returns * format * typedef scene command func
2024-01-31z_view.c gc-eu-mq OK (#1681)Tharo
* z_view.c retail * Replace PERSPECTIVE_EDITOR_ACTIVE, adjust PRINTF selection condition * Macro-ify View_ErrorCheckEyePosition
2024-01-31Gamealloc, Graph, and Graphalloc retail OK (#1675)Derek Hensley
* Gamealloc OK * Graph + Graphalloc OK * PR review * gfxalloc * new lines * Remove imposter
2024-01-31Document Audio Thread Commands (#1399)engineer124
* begin docs * cleanup * copy over progress * cleanup * small cleanup * more docs, fill out cmds * small touchup * pan weight ganon comment * fix specId * seqcmd cleanup * format * small cleanup * one more thing * small feedback from MM * partial PR * some PR Suggestions * small adjustments * ticks, seqticks, frames, updates: term cleanup * small fix * PR Review * PR Review * PR Review * rm param * adjust comment * update renamed functions * format --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-01-30Remove Main_LogSystemHeap from functions.h (#1676)cadmic
2024-01-30z_actor retail OK (#1670)engineer124
* actor ok * cleanup * cleanup * cleanup * player * ACTOR_PRINTF * PR Suggestion * gcc * c file * ACTOR_DEBUG_PRINTF * bool * more review * newline
2024-01-30Remove a double #endif (#1672)cadmic
2024-01-30Match retail z_std_dma.c (#1665)cadmic
* Match z_std_dma.c * Fix DmaMgr_Error doc comment * Unindent
2024-01-30z_collision_check.c OK (#1642)cadmic
* Match z_collision_check.c * Disable function declarations * Remove /* OOT_DEBUG */ * Remove newlines around ifdef * Newlines * Tweak z_actor.c #if to avoid merge conflicts
2024-01-30Overlay_Relocate and Overlay_Load retail OK (#1662)Derek Hensley
* Overlay_Relocate OK * Overlay_Load * format * PR + better match for Overlay_Load
2024-01-30z_demo retail code matched (#1655)fig02
* match all functions * format * clarify between 'dest' and 'skip' debug features * format * better match for CutsceneHandler_RunScript * review * format * remove macro
2024-01-30Audio retail OK (#1650)engineer124
* general OK * wait for data * sfx and sequence * PR Suggestions * debug file * data * PR
2024-01-30Define OOT_DEBUG=0 in retail builds (#1658)cadmic
* Define OOT_DEBUG=0 in retail builds * Fix ifndef * Replace VI_MODE_EDITOR_INACTIVE * Revert "Replace VI_MODE_EDITOR_INACTIVE" This reverts commit f7c4cae7c3b3d9fdc56e97183690c05f2dcec215. * Replace VI_MODE_EDITOR_INACTIVE, take 2 * Revert EnBom_Draw
2024-01-29Match yaz0.c (#1660)cadmic
2024-01-29Match ``game.c`` - OK (#1644)Yanis42
2024-01-29is_debug.c and boot_main.c OK (#1641)cadmic
* Match is_debug.c and boot_main.c * Disable function declarations * Remove /* OOT_DEBUG */ * Remove newlines around ifdef
2024-01-28Set up disassembly for gc-eu-mq (#1613)cadmic
* Disassemble gc-eu-mq * Add script to report progress with matching * Fix whitespace * Change T|None to typing.Optional[T] * Use typing.List * More type annotations fixes for old Python versions * Fix type errors * More type annotations * Use typing.Iterator * Use $(PYTHON) for disassembly * Don't use grouped targets to support very old Make versions * Docs: suggest checking MM, mention virtualenv, clarify about expected/ * Update sym_info.py Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Sync functions.txt * Start banned symbol range at 0x10000000 * Also ban symbols from 0xC0000000-0xFFFFFFFF * Unban IPL symbols * Fix first_diff.py * Sync z_collision_check functions.txt * Ban 0xA0 symbols too * Touch .disasm sentinel file * Copy -jN comment in docs * diff.py flags: remove -3, add -s * Update docs/retail_versions.md Co-authored-by: Yanis42 <35189056+Yanis42@users.noreply.github.com> * Comment that segments are still from the Debug ROM * Revert "diff.py flags: remove -3, add -s" This reverts commit bfaae66c1d02719e706734be9503e78d2b3f104b. * Apply suggestions from code review Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Remove #ifdef example * Reformat Python files with black * Add copyright notice to new Python files * Add TODOs to Makefile --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: Yanis42 <35189056+Yanis42@users.noreply.github.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-01-18Small `Math_Vec3f_Yaw` doc (#1433)Dragorn421
* Small `Math_Vec3f_Yaw` doc * remove actor from arg names --------- Co-authored-by: fig02 <fig02srl@gmail.com>