summaryrefslogtreecommitdiff
path: root/src/code
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-18Fix miscategorized scenes (#1946)cadmic
* Fix miscategorized scenes * Sort includes
2024-04-15Set up gc-eu and match all code (#1938)cadmic
* Set up gc-eu and match all code * Format * Mark gc-eu-mq as WIP until it builds OK * Move original/MQ map mark data to separate files * Add #includes to .inc.c files to help out VS Code * Use #if in spec instead of .inc.c files
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-30Match retail camera (#1917)cadmic
* Create CAM_DEBUG_RELOAD_PARAMS and CAM_DEBUG_RELOAD_PREG macros * Create debug macros for camera OREGs * Move static data into Camera_Demo5 * Match retail camera functions, except Camera_Battle1 * Match camera data and bss sizes * Restore R_CAM reg names, remove OREG_DEBUG[_SCALED] * CAM_DATA_n -> CAM_GLOBAL_n * Remove old debug macros * Add braces to CAM_DEBUG_RELOAD_PREG macro * Hackily match Camera_Battle1 * Format * Better Camera_Battle1 match * Format * Revert R_CAM_N comments for sOREGInit
2024-03-29Fix various data issues in gc-eu-mq (#1921)cadmic
* Fix various data issues * D_80153D78 -> sMessageDebuggerTextboxCount
2024-03-24targetActor -> talkActor (#1933)fig02
2024-03-23More data fixes (#1929)cadmic
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-02Remove reference to Cutscene_DrawDebugInfo in retail (#1913)cadmic
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-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-27Add proper bug comment for gSaveContext.save.dayTime getting cleared as s32 ↵Tharo
when it is u16 (#1900) * Add proper bug comment for gSaveContext.save.dayTime getting cleared as s32 when it is u16 * Formatting?
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-26RNG doc (#1892)Tharo
* RNG doc * Add some missing note qualifiers in comments * code_800FD970 -> rand in Makefile and disasm CSVs
2024-02-10Match retail PreRender_DivotFilter (#1740)cadmic
2024-02-09Match the rest of z_onepointdemo.c (#1739)cadmic
2024-02-09Match OnePointCutscene_Init by inlining static data (#1738)cadmic
* Match OnePointCutscene_Init by inlining static data * Inline what's left of z_onepointdemo_data.inc.c
2024-02-09Match retail z_message_PAL.c (#1736)cadmic
2024-02-08Retail kankyo OK (#1735)engineer124
* only Environment_Update plus 1 fake match * more WIP * remove fake matches * Environment_Update OK * void * add fake comment * better match for update * cleanup * fix fake match * more fixes * add comment
2024-02-08Match Retail BgCheck (#1734)engineer124
* 2 funcs left * so close * bgcheck OK
2024-02-08Match Retail Kaleido Code Files (#1702)engineer124
* OK * PR Review
2024-02-07Skelanime + Kanfont Retail OK (#1729)Derek Hensley
* Skelanime retail OK * kanfont retail OK * PR review
2024-02-07Match more code files (#1724)cadmic
2024-02-07Match retail z_sram.c (#1722)cadmic
2024-02-07Match retail z_fbdemo.c and z_fbdemo_fade.c (#1727)cadmic
* Match retail z_fbdemo.c and z_fbdemo_fade.c * Tweak macro arguments
2024-02-06Reorder boot/code spec includes for retail (#1667)cadmic
* Shuffle spec segments for retail * Remove z_text.o from retail * Un-#if DebugCamera_ScreenTextColored
2024-02-05rcp retail OK (#1713)Derek Hensley
* rcp OK * Format
2024-02-05z_construct.c retail OK (#1716)Lucas Shaw
2024-02-05PreRender.c retail 1 not matching (#1710)Lucas Shaw
* one more function in prerender * one non matching * ran format.py * var name change
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-02`.clang-format`: break short enums, TypenameMacros (#1671)Dragorn421
* IndentPPDirectives: AfterHash * AllowShortEnumsOnASingleLine: false * IndentPPDirectives: BeforeHash * format * format * TypenameMacros: [BAD_RETURN] * IndentPPDirectives: None
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-02Misc Small Retail Files Part 2 OK (#1696)engineer124
* z_draw.c OK * more files
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-02Match retail effects files in code (#1690)cadmic
* Match code effects files * Poke jenkins
2024-02-01Match stackcheck.c and code_800FC620.c (#1656)cadmic
* Match stackcheck.c * Match code_800FC620.c
2024-02-01match z_actor_dlftbls (#1679)fig02
2024-02-01Match retail Title and Sample gamestates (#1692)fig02
* match title and sample * change to directive * no bad return
2024-02-01Retail `z_player_lib.c` OK (#1689)engineer124
* z_player_lib OK * space * line break
2024-02-01z_scene_table.c OK (#1691)engineer124