summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2024-09-06Move button macros to include/controller.h (#2138)cadmic
* Move button macros to include/controller.h * Fix z_mag button ordering
2024-09-05Document `Target_ShouldReleaseLockOn` [Target Docs 8/8] (#2135)fig02
* target range and leash docs * format
2024-09-05Naming a function (#2124)Ozero4
* Naming a function * Naming function * Update functions.txt * Update function name * Update function name * Update function name * Update function name
2024-09-05Update Room Documentation (#2015)mzxrules
* Update Room Documentation * Write more complete documentation, implement suggestions. * Function name changes; minor comment tweaks * nit * Resolve Dragorn fixes * Resolve Fig suggestions, fix comment wording * fix bss, fig suggestion * bss
2024-09-04Target Mode Enum [Target Docs 7/?] (#2133)fig02
* TargetMode Enum * format * add default comment * bss * bss 2 * fix bss 3
2024-09-04istargeted -> islockedon (#2132)fig02
2024-09-04Pause docs: `WorldMapArea` enum and related data (#2130)Dragorn421
* Pause docs: WorldMapArea enum and related data * `WORLD_MAP_AREA_20` -> `_QUESTION_MARK` * bss
2024-09-05[ntsc-1.2] Match z_message.c (#2098)Dragorn421
* match Message_ResetOcarinaNoteState, Message_DrawTextChar * match Message_OpenText * Match Message_SetTables * Match Message_StartTextbox * forgor #if * format * match Message_DrawMain (ty inspect) * review
2024-09-05[ntsc-1.2] Organize n64dd declarations and convert to 1.0 addresses (#2127)cadmic
* Reorganize n64dd declarations * Fix bss * Really fix bss
2024-09-05unk_664 -> focusActor [Target Docs 5/?] (#2126)fig02
* unk_664 -> focusActor * capitalization * missed a temp
2024-09-04[ntsc-1.2] Partially match gfxprint.c (#2101)Dragorn421
* [ntsc-1.2] Partially match gfxprint.c * yeet bss * fix * review
2024-09-04[ntsc-1.2] Match __osMalloc.c and code_800FC620.c (new/delete) (#2106)cadmic
* Match __osMalloc * Match src/code/code_800FC620.c (new/delete) * Wrap versions-specific files in ifdefs to fix compilation * Fix bss * Remove {FAULT,RAND,OSMALLOC}_VERSION in favor of PLATFORM_N64 * Fix __osMalloc data splits, add unused strings * __osMalloc.h -> osMalloc.h * Fix merge
2024-09-04Run CC_CHECK in CI (#2109)cadmic
* Run CC_CHECK in CI * Fix n64dd.h (guess this is why we need this change)
2024-09-04[ntsc-1.2] Match game.c, z_play.c, z_room.c (#2117)cadmic
* Match z_room.c * Match game.c and z_play.c * Add undefined syms * Rewrite condition based on other file matches
2024-09-04Match fp_math.c (#2116)cadmic
2024-09-03Rename FaultDrawer_ functions to Fault_ (#2113)cadmic
* Rename FaultDrawer_ functions to Fault_ * Rename FaultDrawer_Init to Fault_InitDrawer
2024-09-03Match stackcheck.c (#2107)cadmic
2024-09-03Document Target_Update [Target Docs 4/?] (#2123)fig02
* document Target_Update * add comments * try CLAMP (dbg is ok but ci will check retail)
2024-09-03[ntsc-1.2] Match audio (#2122)cadmic
* general.c mostly ok * match remaining audio funcs * comments * Finish matching audio --------- Co-authored-by: engineer124 <engineer124engineer124@gmail.com>
2024-09-03[ntsc-1.2] Import libleo from Decompollaborate/n64dd (#2104)cadmic
* Create stack.h for STACK/STACK_TOP * Import libleo from Decompollaborate/n64dd Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com> * Use (unsigned) int when in mdebug * Apply suggestions from code review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Use && in leocmdex.c * Use proper names for character tables, revert sNonKanjiIndices * Fix incorrect OSMesg casts * Use LEO_ERROR_GOOD even where docs say 0 Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Remove "Presumably" comment * Whitespace * Remove redundant (debug-only) returns --------- Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com> Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-09-03Target System Docs: Actor Searching [3/?] (#2120)fig02
* document target actor searching * missed something * review * mzx review
2024-09-01Document Target_Draw [Target Docs 2/?] (#2115)fig02
* document Target_Draw Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * fix missed renames * retail fix * another fix --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2024-08-31Target Docs [1/?] (#2110)fig02
* Target Docs Part 1 Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * review --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2024-08-30[ntsc-1.2] Match rand.c (#2097)Dragorn421
* [ntsc-1.2] Match rand.c * Comment on N64 Rand_ZeroOne taking the low random bits Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-29[ntsc-1.2] Match z_demo.c, z_eff_blure.c, z_eff_spark.c (#2096)Dragorn421
* Match z_demo.c * Match z_eff_blure.c * Match z_eff_spark.c (fake inc.) * review * improve EffectSpark_Draw match Co-authored-by: cadmic <cadmic24@gmail.com> * cleanup * fix merge * review * better match EffectBlure_DrawSimpleVertices (ty cadmic) * review * rm unneeded include versions.h --------- Co-authored-by: cadmic <cadmic24@gmail.com>
2024-08-28[ntsc-1.2] Match N64 libultra (#2081)cadmic
* Match N64 libultra * INITIALIZE_FUNC -> OSINITIALIZE_FUNC * Document osGetIntMask * Refer readers of osGetIntMask to osSetIntMask comment * Whitelist new static functions in disasm unksyms check
2024-08-28[ntsc-1.2] Match z_game_over.c, PAL 1.1 fixes (#2099)cadmic
* Match z_game_over.c (PAL 1.1 change) * Fix previous matches that are actually PAL 1.1 changes * Add versions.h to global.h * Add versions.h to z_game_over.c too * And the others too * Fix awkward wording
2024-08-28[ntsc-1.2] Decompile fault.c (#2046)Dragorn421
* wip decomp ntsc-1.2 fault.c * more ntsc-1.2 fault.c * decompiled fault_v1.c * name fault_v1 functions, wip * try to clean up build system (two versions of the fault system coexisting) * cleanup * cleanup2 * fix build gc-eu-mq-dbg * match 2 more, ty anon * matched * review * more review * fixup spec * `(uintptr_t)ptr op int` instead of `ptr op (type*)int` * move fault.h out of global headers, properly include fault.h and versions.h * compile all fault_*.c files regardless of version by overriding FAULT_VERSION * n64 FaultMgr.framebuffer s32 -> u16* * FaultMgr.framebuffer -> FaultMgr.fb * make gc FaultMgr.fb u16* (yes, thats everything) * bss * fix Fault_Printf return type * noop FaultDrawer_SetFontColor, FaultDrawer_SetCharPad in fault_n64 * fault_color_ stuff is only for fault_gc * rm empty line in makefile * I guess `D_80105A90_unknown` is `[sg]TotalAllocFailures` * bss * `Fault_WaitInput` -> `Fault_WaitForInput` * use named fault funcs in pointers array * FAULT_OOT{N64,GC} -> FAULT_{N64,GC} * Apply suggestions from code review Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * review, sync fault_{gc,n64} * Apply `FPCSR_CE` suggestions from code review Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
2024-08-27[Audio 6/?] Build Soundfonts and the Soundfont Table (#2056)Tharo
* [Audio 6/?] Build Soundfonts and the Soundfont Table * Improve lots of error messages * First suggested changes * Make audio build debugging more friendly Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Some fixes from MM review * Make soundfont_table.h generation depend on the samplebank xmls since they are read, report from which soundfont the invalid pointer indirect warning originates from --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-08-27Match functions using gDPSetTileCustom (#2100)cadmic
2024-08-27[ntsc-1.2] Match a bunch of small stuff (#2094)cadmic
* Match z_fbdemo_wipe1.c * Fix gDPSetTileCustom * Match z_eff_ss_dead.c * Match src/code/audio_thread_manager.c * Match z_parameter.c * Match KaleidoScope_DrawWorldMap * Format * 1 -> AUDIOMGR_DEBUG_LEVEL_NO_RSP * Actually match KaleidoScope_DrawWorldMap * Add comment on duplicate code * Revert "Fix gDPSetTileCustom" This reverts commit de09338d92e50dd3b9cb8ee7214e2e6b3fecf7ff.
2024-08-26Add all N64 version defines (#2095)cadmic
* Add all N64 ROMs to versions.h * Remove OOT_ prefix from version defines * Make it pretty
2024-08-25[ntsc-1.2] Decompile cic6105.c, main.c (#2068)Dragorn421
* decompile-OK Main, cic6105.c * names cleanup / minimal doc * match versions * fix bad disasm metadata format * bss * bss * review 1 * review 2 * review 3 * review 4 * cleanup * bss * add some sizes to disasm metadata symbols
2024-08-25[ntsc-1.2] Match z_std_dma.c (#2082)cadmic
* Match ntsc-1.2 z_std_dma.c * Add B_80121AE3
2024-08-24[ntsc-1.2] Match z_kaleido_debug.c, z_lmap_mark.c (#2077)Dragorn421
* Match z_kaleido_debug.c, z_lmap_mark.c * consistent style for n64dd callbacks calls
2024-08-24[ntsc-1.2] Match kaleido_collect.c, kaleido_scope.c (#2070)Dragorn421
* Match kaleido_{collect,scope} * review
2024-08-23match z_title.c (#2075)Dragorn421
2024-08-23Add NO_SQRTF_INTRINSIC for z_rumble.c and audio/general.c (#2067)cadmic
2024-08-22Add T macro for translated debug strings (#2064)Dragorn421
* Add T macro for translated debug strings * Hyral -> Hyrule * put some more care into z_std_dma
2024-08-20Match n64dd text in code (#2058)Dragorn421
* match n64dd text * format * fixups * add n64dd segment using baserom * cleanup syms 1 * cleanup symbols 2 * cleanup D_800FF4B0 * fix declaration usage and linking for D_800FF4B0
2024-08-20Add versions.h (#2060)Dragorn421
2024-08-20Match more ntsc-1.2 overlay draw functions (#2061)cadmic
* Match more overlay draw functions * Review
2024-08-20Move non-libultra libc functions to src/libc/ (#2055)cadmic
* Move non-libultra libc functions to src/libc/ * Add explicit nops in delay slots * Don't rely on CPP expanding undefined macros to 0 * Delete old Makefile rules * Fix type of memset()
2024-08-19Allow building the Debug ROM without debug features (#2052)cadmic
* Allow building the Debug ROM without debug features * Fix bss * Add comment * Reword again * Fix bss
2024-08-19[ntsc-1.2] Match boot_main.c, logutils.c, z_locale.c (text) (#2053)Dragorn421
* Match boot_main.c, logutils.c, z_locale.c (text) * review * review 2
2024-08-19Match ntsc-1.2 z_scene_table.c (#2050)cadmic
* Match z_scene_table.c * Attempt to fix bss ordering * Forward declare PlayState instead * Untangle circular includes in z64scene.h
2024-08-18Add DEG_TO_BINANG2/RAD_TO_BINANG2 to match ntsc-1.2 z_en_gs.c, z_en_mm.c, ↵cadmic
z_en_toryo.c (#2047) * Add DEG_TO_BINANG2/RAD_TO_BINANG2 * Remove redundant cast
2024-08-17[Audio 5/?] Build the Samplebank Table (#2044)Tharo
2024-08-15Decompile N64 anti-piracy checks in overlays (#2042)cadmic
* Decompile N64 anti-piracy checks in overlays * Fix BSS splits (I think) * Use physical address and comment on meaning Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
2024-08-14[ntsc-1.2] Match z_construct.c, z_draw.c, z_kaleido_setup.c and partially ↵Dragorn421
z_actor.c (#2039) * func_80033C30 * Interface_Init * z_draw.c * KaleidoSetup_Destroy , n64dd.h * z_kaleido_setup.c * add n64dd files to spec according to tools/disasm/ntsc-1.2/files_code.csv , they're between irqmgr.o and fault.o putting them before or after malloc_debug.o in the spec is an arbitrary choice