summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-20Player Docs: Name some high level update calls (#1593)fig02
* name some low hanging fruit * revert burn and shock, doing in seperate pr * add some function comments * yaw func * adjust comment * some review * unname UpdateZTarget * Player_DetectRumbleSecrets * fix dive do action name
2024-04-19Player Docs: Action Interrupt (#1947)fig02
* document action interrupt * format * new function comment * format * add a note about items * format
2024-04-18Fix miscategorized scenes (#1946)cadmic
* Fix miscategorized scenes * Sort includes
2024-04-17Player Docs: "sUpperBodyIsBusy" (#1944)fig02
* document upperbodybusy * change wording for comment and rename upperanimblendweight * format * review
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-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-04-10Revert "Replace ‾ with - in z_bg_gnd_iceblock.c for encoding into EUC-JP ↵cadmic
(#1937)" (#1940) This reverts commit a9ec5e1245e0027937d5907feb680415633da3a4.
2024-04-01Replace ‾ with - in z_bg_gnd_iceblock.c for encoding into EUC-JP (#1937)cadmic
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-29Document en_ba damage bug (#1934)fig02
* comment on en_ba collision bug * format
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-23Rework rom_header.s (#1932)Tharo
* Rework rom_header.s * Offset comments, spaces in libultra version * Adjust some comments, remove value arg from checksum macro
2024-03-23Match retail ovl_kaleido_scope (#1931)cadmic
* WIP * cleanup * small progress * small cleanup * Finish retail ovl_kaleido_scope * GREG + markPoint -> markPoint + GREG --------- Co-authored-by: engineer124 <engineer124engineer124@gmail.com>
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-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-17Match retail build date (#1926)cadmic
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-04Match retail BossFd2_UpdateMane (#1908)cadmic
2024-03-04Match retail BossMo_DrawCore (#1907)cadmic
2024-03-04Match retail z_fishing.c (#1905)cadmic
2024-03-03Match retail BossFd_DrawBody (#1915)cadmic
2024-03-02Remove reference to Cutscene_DrawDebugInfo in retail (#1913)cadmic
2024-03-02Match retail text for some actors :heart: (#1912)Dragorn421
* Match retail text for some of my dear actors * Fix fake `EnDoor_SetupType` match, ty cadmic
2024-03-02Build fixups: build gc-eu-mq with extracted/dbg, remove asmproc pragmas (#1911)Dragorn421
* Remove asmproc recurse (somehow these two survived) * Use `extracted/gc-eu-mq-dbg` anyway for gc-eu-mq
2024-03-01Match retail EnNiw_Update (#1906)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-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-03-01Mostly match retail bosses, part 1 (#1898)cadmic
* Retail bosses part 1 * Use GameState* local variable in BossGanon/BossGanon2 draw helper functions
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-28AVOID_UB for out-of-bounds access in AudioLoad_Init (#1902)Tharo
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 z_en_ds.c, z_en_horse.c, z_en_fhg_fire.c (#1897)cadmic
* Actually match z_en_ds.c * Match z_en_horse.c * Match z_en_fhg_fire.c
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-27Fix some retail `boot` data (#1668)cadmic
* Fix is_debug.c bss * Fix stackcheck.c rodata * Poke jenkins * Don't introduce new variable
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-26Mostly match retail bosses, part 2 (#1894)cadmic
* Bosses part 2 * Remove newline
2024-02-26Match En actors D-G (#1889)cadmic
* Match entity actors D-G * Remove SET_EN_GOROIWA_SPEED * Actually match z_en_elf.c * GET_EN_GOROIWA_SPEED -> EN_GOROIWA_SPEED
2024-02-26Match entity actors O-T (#1826)cadmic
2024-02-26Match retail En actors V-Z (#1825)cadmic
* Entity actors starting with Z * Use CS_STATE_IDLE * z -> playerPosZ * Remove comment
2024-02-26Finish player (#1895)cadmic
2024-02-24Match En actors A-C, and a few more (#1890)cadmic
2024-02-24Match more of player for retail (#1893)cadmic