fig02
5ddb3e68b6
Clean out z64.h ( #2484 )
...
* Clean out z64.h
* fix version include
* overlay.h
* pr suggestion
* try fixing main.c
* add back forward declare
* fix bss
* header guard
* prefix
2025-02-22 14:01:09 -05:00
fig02
2e4d7a1101
Create headers for Game States ( #2482 )
...
* make headers for gamestates
* fixes
* fixes 2
* bss
2025-02-20 07:50:13 -05:00
fig02
4cfb5f05a0
Use "entry" terminology in map select ( #2479 )
...
* use entry terminology in map select
* missed one
2025-02-19 19:59:21 -05:00
mzxrules
981af4b6af
Reduce overlay dependencies on global.h (8) ( #2478 )
...
* move variables into z64environment.h
* z_room.h
* z64sram.h, z64ss_sram.h, z64font.h, kanread.h
* z64lifemeter.h, z64debug.h, debug_arena.h
* buffers.h
* remove z_bgcheck global
* gamealloc.h
* suggestions
* .bdd
2025-02-19 05:54:39 -05:00
mzxrules
652478c338
Reduce overlay dependencies on global.h (7) ( #2472 )
...
* z64env_flags, z64quest_hint_commands
* z64cutscene_spline, z64save.h moved from z64.h
* bss
* pr suggestion
* bss
* suggestions
2025-02-16 15:33:55 -05:00
mzxrules
4639914583
Reduce overlay dependencies on global.h (6) ( #2468 )
...
* add some headers, split some of z64.h
* MtxClear -> IdentityMtx
* more misc cleanups
* move D_80116280 to header, fix build issue
* remove z64.h
* Revert "MtxClear -> IdentityMtx"
This reverts commit 8fc74c0672
.
* split z64path.h and z64skin.h functions
* z64face_reaction.h
* cleanup overlay global references
* trim padding
* bss
2025-02-13 18:15:14 -05:00
mzxrules
494aecc9fc
Reduce overlay dependencies on global.h (5) ( #2466 )
...
* remove global.h dependency from all actors
* fix compiler error
* fix another build issue
* fix bss
2025-02-12 21:50:46 +01:00
mzxrules
54939bac3a
Reduce overlay dependencies on global.h (3) ( #2449 )
...
* kill more global.h references
* .format.py
* bss
* ique
2025-02-05 21:07:19 +01:00
mzxrules
d855f2bfd8
Split z64debug_display.h, z64draw.h, z_en_item00.h ( #2443 )
...
* z64debug_display.h
* z64draw.h
* z_en_item00.h
* bss
2025-01-27 13:01:54 -05:00
cadmic
5bca304cbc
[iQue] Unify file select actionButtonAlpha and confirmButtonAlpha ( #2436 )
...
* Fix all confirmButtonAlpha indices
* Unify actionButtonAlpha and confirmButtonAlpha
* Restore ConfirmButtonIndex
* Add comment for actionButtonAlpha
2025-01-24 23:00:46 -05:00
mzxrules
f448a48cd6
Create headers for some libu64 files ( #2440 )
...
* Create headers for some libu64 files
* apply bss patch
2025-01-24 13:25:05 -05:00
mzxrules
ab37332793
Reduce overlay dependencies on global.h (1) ( #2438 )
...
* Reduce actor dependencies on global.h
* move dependency on z64play.h into the .c files
* add some missing dependencies
2025-01-23 14:39:23 -05:00
cadmic
d886ebe711
[ntsc-1.0/1.1] Match audio and loose ends ( #2293 )
...
* Match ntsc-1.0/1.1 loose ends
* Revert audioseq_padding
* Fix spelling
2024-11-11 17:50:56 -05:00
cadmic
60f9607569
[ntsc-1.0/1.1] Match "system" files ( #2254 )
2024-10-09 09:48:53 -04:00
Dragorn421
ed77e143b6
[headers] Create one_point_cutscene.h
, z64olib.h
and move stuff to z64{object,player,scene}.h
( #2250 )
...
* [headers] Create `one_point_cutscene.h`, `z64olib.h` and move stuff to `z64{object,player,scene}.h`
* bss
* sSceneCmdHandlers
* bss
* bss
2024-10-01 13:14:54 -04:00
Dragorn421
47c6c36dc3
[headers] Create zelda_arena.h, move protos to z64effect.h, and misc fixups ( #2248 )
...
* [headers] Create z64malloc.h, move protos to z64effect.h, and misc fixups
* zelda_arena.h
* bss
* bss2
* bss3
* bss
2024-10-01 08:46:56 +02:00
cadmic
04498f808f
[PAL N64] Match file select language selection ( #2240 )
...
* [PAL N64] Match file select language selection
* sInitialLanguageInputTimerY -> sInitialLanguageInputTimerX
2024-09-28 13:12:57 -04:00
Dragorn421
fbf797f1e2
[headers] Create gfxalloc.h
, map.h
, move protos to gfx.h
, z64{player,view}.h
( #2233 )
...
* [headers] Create gfxalloc.h, map.h, move protos to z64{actor,player,view}.h
* oops
* bss
* comment on player_lib protos & format
* format map.h
* Move SCREEN_{WIDTH,HEIGHT} and SET_FULLSCREEN_VIEWPORT to z64view.h
* bss
* revert move screen_width/height
* bss
2024-09-27 14:51:00 -04:00
Dragorn421
7ccb0a641e
[headers] Create letterbox.h, move more protos from functions.h ( #2225 )
...
* [headers] Create z64shrink_window.h, move more protos from functions.h
* format
* include
* bss
* letterbox.h
2024-09-25 13:45:06 -04:00
Dragorn421
a09ea76025
[headers] gfx_setupdl.h and z64skin_matrix.h ( #2221 )
...
* [headers] gfx_setupdl.h and z64skin_matrix.h
* include z64skin_matrix.h
* bss
* bss
2024-09-24 18:18:01 -04:00
Dragorn421
a1a192b1a2
[headers] z64inventory.h, move savectx/inventory macros to z64save.h ( #2209 )
...
* [headers] z64inventory.h
* move savectx/inventory macros to z64save.h
* commit the file
* bss
2024-09-18 15:40:59 -04:00
cadmic
09c1816e2d
Add OOT_PAL_N64 and move other shorthands to versions.h ( #2188 )
...
* Move definitions of OOT_NTSC/OOT_PAL/OOT_MQ to versions.h
* Add PAL_N64 shorthand
2024-09-12 05:24:31 -04:00
Dragorn421
76d97ac18a
[headers 14] libc64 headers ( #2177 )
...
* [headers 14] libc64 headers
* bss
* bss
2024-09-11 18:02:42 +09:00
Dragorn421
cbf9eacf42
[headers 12] Add kaleido_manager.h, move various protos to headers ( #2174 )
...
* [headers 12] add kaleido_manager.h, move various protos to headers
* BSS
* bss
2024-09-11 10:17:47 +02:00
Dragorn421
c7ec814d78
[headers 9] Add src/libc64/ and new "z64" rand.h ( #2164 )
...
* rand.h -> libc64/qrand.h
* Add rand.h with z64 rand wrappers
* yeet comment
* code/rand.c -> libc64/qrand.c
* fixup
* move libc64 source to src/libc64/
* fix
* bss
* update file splits disasm metadata
2024-09-08 17:11:41 -04:00
Dragorn421
de1a08c061
[headers 11] stackcheck.h, jpeg functions ( #2171 )
...
* [headers 11] stackcheck.h, jpeg functions
* bss
2024-09-08 12:02:38 -04:00
Dragorn421
277ce1c0d3
[headers 8] Add main.h
, segmented_address.h
, and changes for main.c
symbols ( #2151 )
...
* [headers 8] Add main.h and changes for main.c symbols
* fix gSystemHeapSize is size_t only in MM
* segmented_address.h
* rm now useless include
* actually commit segmented_address.h, oops
* rm gGraphThread (faulty copypaste from MM)
* bss
2024-09-07 16:55:06 -04:00
cadmic
e52d135e15
[ntsc-1.2] Import n64dd code from Decompollaborate/n64dd ( #2136 )
...
* Import n64dd code from Decompollaborate/n64dd
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com>
* Don't stub out missing textures
* Remove @brief
* Add low-effort file comments
* Match OoT if style
* Fix n64dd matching due to int vs long
* Fix English n64dd error textures
* Compress n64dd segment
* Align n64dd to 0x40
---------
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com>
2024-09-08 03:37:15 +09:00
Dragorn421
e7b0daa2ec
[headers 7] Add sys_matrix.h ( #2150 )
...
* add sys_matrix.h, based on MM's
* move matrix debug macros to sys_matrix.h
* bss
2024-09-07 00:26:47 -04:00
cadmic
3faa1c6acc
Move button macros to include/controller.h ( #2138 )
...
* Move button macros to include/controller.h
* Fix z_mag button ordering
2024-09-06 10:24:19 +02:00
cadmic
c6d7cc7697
[ntsc-1.2] Match __osMalloc.c and code_800FC620.c (new/delete) ( #2106 )
...
* 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-04 11:10:14 +02:00
cadmic
2152d1df2d
[ntsc-1.2] Import libleo from Decompollaborate/n64dd ( #2104 )
...
* 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-03 15:30:14 -04:00
Dragorn421
68818044db
[ntsc-1.2] Decompile fault.c ( #2046 )
...
* 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-28 09:38:42 +02:00
Dragorn421
614c411058
match z_title.c ( #2075 )
2024-08-23 16:26:53 -04:00
cadmic
e6bc4bd8cb
Add names to all typedef'd structs, unions, and enums ( #2028 )
...
* Add names to all typedef'd structs, unions, and enums
* wtf vs code
* Use a better regex
2024-08-12 03:07:48 -04:00
cadmic
feac688313
Match NTSC file select ( #1998 )
...
* Match NTSC file select
Co-authored-by: inspectredc <inspectredc@gmail.com>
* nes -> eng in macros
* Duplicate more code but use less #ifs
* Format
---------
Co-authored-by: inspectredc <inspectredc@gmail.com>
2024-08-08 00:27:02 -04:00
cadmic
ec5068c58d
Introduce OOT_VERSION and OOT_REGION defines for build info and ROM header ( #2003 )
...
* Use version defines for build info and ROM header
* Use existing REGION_ defines for OOT_REGION instead
2024-07-28 00:46:55 -04:00
Anghelo Carvajal
d8f2e9abc6
Move PlayState
to a new z64play.h
( #1966 )
...
* ActorContext
* frameadvance
* SfxSource
* GameOverContext
* RoomContext
* TransitionActorContext
* fix bss
* Move PlayState
* Move play functions to new header
* SAC_ENABLE
* no longer needed
* SAC_ENABLE again
* z_demo being silly
* comment
* format headers
* fix retail bss
* actually fix bss
* Cutscene_ProcessScript comment
* bss again
* Update src/code/z_demo.c
Co-authored-by: cadmic <cadmic24@gmail.com>
* rename to frame_advance and remove it from z64.h
* move macros too
* review
* Rename SequenceContext to SceneSequences
---------
Co-authored-by: cadmic <cadmic24@gmail.com>
2024-06-25 15:13:31 -04:00
mzxrules
8d83727429
Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib ( #1956 )
...
* split sys_math, sys_math3d, z_lib from global.h
* suggestions
* forgot this
* more math stuff
* nit fix
* re-add ichain.h
* resolve tharo's comments
2024-06-19 00:00:23 -04:00
fig02
06bbdf88f1
Revamp "AnimationContext" Docs, now called "AnimTaskQueue" ( #1941 )
...
* start using task terminology
* more docs
* format
* cleanups
* MoveActor -> ActorMove
* missed a couple
* hopefully the last changes
* comment explaining the group change
* some review
* dragorn review
* remove accidental file
* fix matching issue, now use while loop
2024-06-18 23:46:36 -04:00
inspectredc
e88084fe65
Fix LensMode Enum Names ( #1954 )
2024-06-09 14:43:15 -04:00
Derek Hensley
1b60dcf6dd
Use Romfile in place of vromStart and vromEnd in structs ( #1742 )
...
* KaleidoMgrOverlay
* GameStateOverlay
* ActorOverlay
* EffectSsOverlay
* MapMarkDataOverlay
* Missed DEFINE_ACTOR_UNSET
* ROM_FILE_UNSET
* DEFINE_OBJECT_EMPTY
* DmaEntry
* ACTOR_UNSET
* romfile.h
* newline
* Format
2024-02-29 14:15:04 +01:00
Tharo
c521f1f8ae
Remove gSystemHeap and use _buffersSegmentEnd instead, make buffer 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-27 19:01:47 -05:00
Tharo
dcf61174e9
Filename & line number args cleanup ( #1891 )
...
* 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-27 02:37:33 -05:00
cadmic
d9a1148d13
Match retail __osMalloc.c ( #1684 )
...
* Match retail __osMalloc.c
* Add TODO about N64 ArenaNode debug info
* FLAG prefix -> FLAG suffix
2024-02-02 17:37:32 -05:00
engineer124
a0d31dba68
Document Audio Thread Commands ( #1399 )
...
* 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-31 18:25:23 -05:00
cadmic
5ba625b171
Match yaz0.c ( #1660 )
2024-01-29 18:14:30 -05:00
Dragorn421
1a8772e540
Cleanup z_collision_check
1 ( #1427 )
...
* Cleanup `z_collision_check.c` and structs
* Revert `other*` names to master, split to other pr
* WIP/experimental: `ColliderCylinderElement`
* Revert "WIP/experimental: `ColliderCylinderElement`"
This reverts commit cfc8c32ace
.
* ac/atHitInfo -> HitElem
* rename some collider elements to "elem" (instead of item, info, hurtbox...)
* cut down on more "hitbox" usage
* name all `ColliderElement*` temps properly
* rearrange colcheck structs
* add collider shape name descriptions
* reword collider shape descriptions
* jntsph first again
---------
Co-authored-by: fig02 <fig02srl@gmail.com>
2024-01-11 10:30:47 -05:00
Tharo
5ce4670fd1
Documentation for audio_thread_manager.c ( #1562 )
...
* Documentation for audio_thread_manager.c
* Fixes
* Move AudioTask back to z64audio.h and include in audiomgr.h, adjust bug comment
* Adjust AudioMgrDebugLevel enum
2023-11-30 16:22:30 -05:00
fig02
4908b8b37c
Player Docs: public facing csAction things ( #1561 )
...
* name public csAction functions
* format
* adjust function comment
* format
2023-10-28 07:46:24 -04:00