cadmic
f329507f97
[iQue] Create/update macros for printing debug strings ( #2398 )
2025-01-08 10:33:49 -05:00
cadmic
9dafc2f2e4
[iQue] Build some C files with EGCS ( #2396 )
2025-01-02 03:35:22 -05:00
fig02
17edb82c0d
Decouple Debug Features From gc-eu-mq-dbg ( #2296 )
...
* rename OOT_DEBUG to DEBUG_FEATURES
* makefile changes
* add DEBUG_ASSETS
* fix DEBUG_FEATURES usages
* format
* fix errors
* review
* fix problem and review2
* review
* add DEBUG_FEATURES to DEBUG_ASSETS check
* review
* whoops
* format
2024-11-17 17:02:07 -05:00
fig02
7dd8f2b6ad
Document Player_ChooseNextIdleAnim
( #2262 )
...
* document most of Player_ChooseNextIdleAnim
* finish documenting Player_ChooseNextIdleAnim
* capital letter
* dummy block numbers for the script
* fix bss
* bug comment
* SpeicalIdle -> Fidget, clean up related things
* fix rng chance comment
* normal -> default
* rework Player_CheckForIdleAnim
* swap idle anim defines
* remove COMMON_FIDGET
* add ARRAY_COUNT_2D
* change macro def
2024-10-08 00:19:10 -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
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
cadmic
5178011b64
[PAL N64] Match handwritten audio sequences ( #2210 )
...
* [PAL N64] Match handwritten audio sequences
* Remove offset comments from PAL-only audio code
* Reorder includes
2024-09-21 07:30:52 -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
8348132511
[PAL N64] Create macros for 50-Hz-related values ( #2206 )
...
* [PAL N64] Create macros for 50-Hz-related values
* Use FRAME_RATE_DEPENDENT for player speeds and boot data too
* FRAME_RATE_DEPENDENT -> FRAMERATE_CONST
2024-09-18 15:14:47 -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
5441559b30
Cleanup gSPMatrix, rename Matrix_New
-> Matrix_Finalize
, add MATRIX_FINALIZE_AND_LOAD
( #1983 )
...
* clean up gSPMatrix usage
* add weird hybrid macro gSPMATRIX_SET_NEW
* Matrix_NewMtx, MATRIX_NEW -> Matrix_Finalize, MATRIX_FINALIZE
* gSPMATRIX_SET_NEW -> MATRIX_FINALIZE_AND_LOAD
* format
2024-09-11 16:59:23 +09: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
Dragorn421
62b30e2ebe
Move Graph_Alloc
and open/close Disps to gfx.h
( #1976 )
...
* move graph_alloc and open/close Disps to gfx.h
* zcolchk bss reeeeeee
* fix matching gc-eu-mq (bss)
* remove __gfxCtx extern
* revert makefile -Werror=implicit-function-declaration
* bss
2024-09-07 19:30:55 +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
e7cf2fceac
[ntsc-1.2] Match game.c, z_play.c, z_room.c ( #2117 )
...
* Match z_room.c
* Match game.c and z_play.c
* Add undefined syms
* Rewrite condition based on other file matches
2024-09-04 01:46:41 -04:00
cadmic
17debe8620
Match functions using gDPSetTileCustom ( #2100 )
2024-08-27 17:08:41 -04:00
Dragorn421
98ba7ad2ab
Add T macro for translated debug strings ( #2064 )
...
* Add T macro for translated debug strings
* Hyral -> Hyrule
* put some more care into z_std_dma
2024-08-22 22:33:50 +02:00
Dragorn421
ac2224f095
Add versions.h ( #2060 )
2024-08-20 17:19:16 -04:00
cadmic
8366b8731e
Set up build system and disassembly for ntsc-1.2 ( #2021 )
...
* Set up build system for ntsc-1.2
* Set up disassembly for ntsc-1.2
* Add all unnamed functions to functions.txt
* Update docs/retail_versions.md for ntsc-1.2
* Format
* Update docs/retail_versions.md
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
* Remove mention of US
* OOT_N64 -> PLATFORM_N64, OOT_GC -> PLATFORM_GC
* Move mtxutil to libultra/gu
* Fix libultra/io bss splits
* Fix merge
---------
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-08-11 06:20:43 -04:00
cadmic
9eec8af498
Add "do {} while (0);" to CLOSE_DISPS ( #2025 )
2024-08-10 18:48:27 -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
cadmic
bf3339a16d
Set up build system and disassembly for gc-us ( #1982 )
...
* Build gc-us
* Set up gc-us disassembly
* Don't disasm unchanged overlays
* Fix gc-eu-mq BSS
* romalign link_animetion for NTSC
* Explicitly set CPP defines to 0/1
* Add #ifs to segment_symbols.h
* Add sButtonTextures now
* Fix message _SHIFTL usage
* Don't ifdef LANGUAGE_MAX
2024-07-06 21:38:31 +02: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
Dragorn421
5c3a722aca
Fixup permuter_settings ( #1746 )
...
* fix how permuter imports PRINTF macros wrt the ido-has-no-variadic-macros hack
* more permuter_settings fixups
2024-02-20 07:38:58 -05:00
cadmic
178e95ae50
Give debug_malloc.c the same treatment as system_malloc.c and z_malloc.c ( #1700 )
2024-02-03 10:59:25 -05:00
cadmic
67d4f0f36a
Match retail z_skin.c, z_skin_awb.c, z_skin_matrix.c ( #1697 )
...
* Match retail z_skin_matrix.c
* Match retail z_skin_awb.c
* Match retail z_skin.c
* Remove same-line hacks
2024-02-02 13:29:58 -05:00
cadmic
4e2d2885bc
Match retail padmgr.c and sys_rumble.c ( #1693 )
...
* Match retail padmgr.c
* Match retail sys_rumble.c
* Poke jenkins
2024-02-02 12:25:44 -05:00
engineer124
1e21f69b37
z_play retail OK ( #1688 )
...
* z_play OK
* cleanup spacing
* PR
2024-02-01 17:00:27 -05:00
Tharo
5e8e01f110
z_view.c gc-eu-mq OK ( #1681 )
...
* z_view.c retail
* Replace PERSPECTIVE_EDITOR_ACTIVE, adjust PRINTF selection condition
* Macro-ify View_ErrorCheckEyePosition
2024-01-31 20:09:16 -05:00
cadmic
4bd005520d
Remove a double #endif ( #1672 )
2024-01-30 20:15:57 -05:00
cadmic
9816f62129
Define OOT_DEBUG=0 in retail builds ( #1658 )
...
* Define OOT_DEBUG=0 in retail builds
* Fix ifndef
* Replace VI_MODE_EDITOR_INACTIVE
* Revert "Replace VI_MODE_EDITOR_INACTIVE"
This reverts commit f7c4cae7c3
.
* Replace VI_MODE_EDITOR_INACTIVE, take 2
* Revert EnBom_Draw
2024-01-30 13:54:38 -05:00
Yanis42
9f169a67cd
Match `game.c
` - OK ( #1644 )
2024-01-29 15:27:29 -05:00
cadmic
90a6268460
Test for __sgi instead of __GNUC__ for PRINTF macro ( #1612 )
2024-01-18 08:47:22 -05:00
cadmic
6b5533ccd9
Create debug macros for LogUtils functions ( #1610 )
2024-01-16 09:59:02 -05:00
cadmic
324db1d578
Replace most osSyncPrintf calls with PRINTF macro ( #1598 )
...
* Replace most osSyncPrintf calls with PRINTF macro
* DEBUG -> OOT_DEBUG
2024-01-12 10:38:13 -05:00
cadmic
cd917b0cb8
Create debug macros for common functions ( #1597 )
...
* Create debug macros for common functions
* Revert NDEBUG change
* MALLOCR -> MALLOC_R
* DEBUG -> OOT_DEBUG
* Use the same name for debug and non-debug matrix functions
* Fix file/line argument order
* Revert g[s]DPNoOp[Tag]
* Use SystemArena_MallocDebug directly in GameAlloc_MallocDebug
* MTXF_TO_MTX -> MATRIX_TO_MTX
2024-01-09 07:59:03 -05:00
Tharo
3475651701
libc cleanup ( #1568 )
...
* libc cleanup
* Suggested changes, small alloca tweak
* Remove printf include
2023-10-27 16:06:44 +02:00
Tharo
7235af2249
Apply noreturn attribute where applicable ( #1532 )
2023-09-09 10:24:52 -04:00
Dragorn421
6e7a6d4181
Split SaveContext
into sub-structs ( #1393 )
...
* Split SaveContext struct
* run formatter
* Remove temporary-until-split stuff in z_sram
* .
* run formatter
2023-08-13 15:24:26 -04:00
Dragorn421
da2e8a8f2c
Skelanime/Animation header cleanup ( #1434 )
...
* Skelanime/Animation header cleanup
* touch up names of the two existing moveFlags macros
* formatter is a dum dum D:
2022-11-30 18:46:12 +01:00
Dragorn421
cc2409606e
Update item names ( #1376 )
...
* Reevaluate item names (`ItemID` enum)
* format
* Carry `ItemID` changes to `ExchangeItemID`
* format
* Add item enum comments on items to slots array
* Rename slots according to current item enum names
* Add item enum comments on items to PlayerItemAction array
* Rename PlayerItemAction enum names according to current item enum names
* gi, gid names...
* `QUEST_GERUDO_CARD` -> `QUEST_GERUDOS_CARD`
* `DUNGEON_KEY_BOSS` -> `DUNGEON_BOSS_KEY`
* `UPG_` sticks/nuts : +deku
* Fixed remove array enum comments in `sDebugSaveEquips`
* "magic beans" -> "magic bean" (singular)
* cucco -> chicken (the one from weird egg, "alarm clock bird" from literal japanese translation)
2022-11-16 13:23:27 -05:00
Tharo
c165ed015c
Improvements to Video Interface related functions and data ( #1332 )
...
* Improvements to VI related functions
* Fix
* Suggested changes
* Comment enum values
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
* Suggested changes, plus comments in visetspecial.c
* Name gViConfigModeType
* Further suggested changes
* Format
* Fix comment on modeLPN2
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
2022-11-13 18:07:27 -05:00
Roman971
f5a7c5612b
Use intptr types in more code files ( #1385 )
...
* Use intptr types for segments and a few system files
* Use intptr types for more dma rom addresses
* Use intptr types in data referring to rom files
* Update and cleanup a few message casts
* Change sys_cfb functions and debugHeapStart to use pointers
* Update graph.c for the sys_cfb return type change
2022-10-02 11:38:09 -04:00
Tharo
0d52a4aebd
More documentation for PreRender.c ( #1340 )
...
* More documentation for PreRender.c
* Comment fix
* Suggested changes
* More on coverage reading functions
* Further comment changes
* Further suggestions
2022-08-28 12:18:20 -04:00
Tharo
451b24f79b
Fix a number of warnings when compiling with GCC ( #1239 )
...
* Silence a number of GCC warnings
* Remove
* Suggested changes
* Format
* Fix comment in en_go2
2022-06-03 18:51:23 +02:00
fig02
2e6279bc8e
PlayState Rename ( #1231 )
...
* global context -> play
* fix PlayState* PlayState
2022-05-21 14:23:43 -04:00
fig02
4f0018bf36
Environment documentation pass ( #1115 )
...
* some docs, start introducing time macro
* most usages of CLOCK_TIME
* finish up clock time defines, format
* saving incase i need to revert
* more docs
* more docs progress
* some more docs
* format with 11
* change sos to storm
* update functions.h
* some depth stuff
* review 1 and 2
* whoops
* update zbuf stuff
* most of review 3
* enum name
* storm state enum
* review 4
* fix enum
* add comment to skyboxischanging
* review
* things dont match, committing so i can change branches
* revert struct changes
* define for override_full_control
* new clock_time macro
* fill alpha -> glare strength
* update comment
* remove indoor/outdoor, new name for underwater light variable
* remove copy pasted comment
* fix comments
* remove whitespave
* review
2022-05-20 14:40:13 -04:00