summaryrefslogtreecommitdiff
path: root/include/macros.h
AgeCommit message (Collapse)Author
2025-04-27Delete macros.h; Delete global.h (#2516)fig02
2025-04-26create ACTOR_FLAGS_CHECK_ALL (#2515)fig02
2025-04-26add array_count.h (#2514)fig02
2025-04-25macros.h 3/5: Split various macros (#2512)fig02
* split out various macros * fix * fix2 * fix dw * libc path * fix macro * does this fix bss * fix bss
2025-04-24Use official macros for Physical Address conversion (#2511)fig02
2025-04-23macros.h 1/?: `PRINTF` and `T` (#2509)fig02
* create printf and translation headers * non-overlays complete * printf finished * move T macro * edit comment * fix error * fix bss * remove is_64 * fix bss
2025-04-19Remove Variables.h; Decouple z64.h from global.h (#2507)fig02
* progress * z64.h issues sorted * remove variables.h * format * n64 fix * another fix * did the wrong fix * fix libleo * fix bss * review * remove instead of comment
2025-02-24Reduce dependencies on global.h (9) (#2488)mzxrules
* split game states * split all GameState headers * match fig names * deduplicate headers from bad merge * split z64actor.h into z64actor_profile.h, z_actor_dlftbls.h * fix compile error * .bss
2025-02-19Reduce overlay dependencies on global.h (8) (#2478)mzxrules
* 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-13Reduce overlay dependencies on global.h (6) (#2468)mzxrules
* 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 8fc74c0672f72b91ae4068e73228fc46fe9465d4. * split z64path.h and z64skin.h functions * z64face_reaction.h * cleanup overlay global references * trim padding * bss
2025-01-14[iQue] Match z_end_title, z_construct, z_common_data, z_parameter, z_title, ↵cadmic
z_opening (#2424) * [iQue] Match z_end_title * [iQue] Match z_construct * [iQue] Match z_common_data * [iQue] Match z_parameter * [iQue] Match z_title, z_opening * Actually match z_parameter * Give up on stack issues * this->exit = true
2025-01-13[iQue] Define EGCS macro instead of relying on `__GNUC__` (#2423)cadmic
* [iQue] Define EGCS macro instead of relying on __GNUC__ * Revert longlong.h
2025-01-08[iQue] Create/update macros for printing debug strings (#2398)cadmic
2025-01-02[iQue] Build some C files with EGCS (#2396)cadmic
2024-11-17Decouple Debug Features From gc-eu-mq-dbg (#2296)fig02
* 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-10-08Document `Player_ChooseNextIdleAnim` (#2262)fig02
* 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-01[headers] Create zelda_arena.h, move protos to z64effect.h, and misc fixups ↵Dragorn421
(#2248) * [headers] Create z64malloc.h, move protos to z64effect.h, and misc fixups * zelda_arena.h * bss * bss2 * bss3 * bss
2024-09-27[headers] Create `gfxalloc.h`, `map.h`, move protos to `gfx.h`, ↵Dragorn421
`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-21[PAL N64] Match handwritten audio sequences (#2210)cadmic
* [PAL N64] Match handwritten audio sequences * Remove offset comments from PAL-only audio code * Reorder includes
2024-09-18[headers] z64inventory.h, move savectx/inventory macros to z64save.h (#2209)Dragorn421
* [headers] z64inventory.h * move savectx/inventory macros to z64save.h * commit the file * bss
2024-09-18[PAL N64] Create macros for 50-Hz-related values (#2206)cadmic
* [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-12Add OOT_PAL_N64 and move other shorthands to versions.h (#2188)cadmic
* Move definitions of OOT_NTSC/OOT_PAL/OOT_MQ to versions.h * Add PAL_N64 shorthand
2024-09-11Cleanup gSPMatrix, rename `Matrix_New` -> `Matrix_Finalize`, add ↵Dragorn421
`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-07[headers 8] Add `main.h`, `segmented_address.h`, and changes for `main.c` ↵Dragorn421
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-07Move `Graph_Alloc` and open/close Disps to `gfx.h` (#1976)Dragorn421
* 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[headers 7] Add sys_matrix.h (#2150)Dragorn421
* add sys_matrix.h, based on MM's * move matrix debug macros to sys_matrix.h * bss
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-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-08-27Match functions using gDPSetTileCustom (#2100)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-20Add versions.h (#2060)Dragorn421
2024-08-11Set up build system and disassembly for ntsc-1.2 (#2021)cadmic
* 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-10Add "do {} while (0);" to CLOSE_DISPS (#2025)cadmic
2024-08-08Match NTSC file select (#1998)cadmic
* 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-07-28Introduce OOT_VERSION and OOT_REGION defines for build info and ROM header ↵cadmic
(#2003) * Use version defines for build info and ROM header * Use existing REGION_ defines for OOT_REGION instead
2024-07-06Set up build system and disassembly for gc-us (#1982)cadmic
* 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-06-25Move `PlayState` to a new `z64play.h` (#1966)Anghelo Carvajal
* 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-19Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956)mzxrules
* 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-02-20Fixup permuter_settings (#1746)Dragorn421
* fix how permuter imports PRINTF macros wrt the ido-has-no-variadic-macros hack * more permuter_settings fixups
2024-02-03Give debug_malloc.c the same treatment as system_malloc.c and z_malloc.c (#1700)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-02Match retail padmgr.c and sys_rumble.c (#1693)cadmic
* Match retail padmgr.c * Match retail sys_rumble.c * Poke jenkins
2024-02-01z_play retail OK (#1688)engineer124
* z_play OK * cleanup spacing * PR
2024-01-31z_view.c gc-eu-mq OK (#1681)Tharo
* z_view.c retail * Replace PERSPECTIVE_EDITOR_ACTIVE, adjust PRINTF selection condition * Macro-ify View_ErrorCheckEyePosition
2024-01-30Remove a double #endif (#1672)cadmic
2024-01-30Define OOT_DEBUG=0 in retail builds (#1658)cadmic
* Define OOT_DEBUG=0 in retail builds * Fix ifndef * Replace VI_MODE_EDITOR_INACTIVE * Revert "Replace VI_MODE_EDITOR_INACTIVE" This reverts commit f7c4cae7c3b3d9fdc56e97183690c05f2dcec215. * Replace VI_MODE_EDITOR_INACTIVE, take 2 * Revert EnBom_Draw
2024-01-29Match ``game.c`` - OK (#1644)Yanis42
2024-01-18Test for __sgi instead of __GNUC__ for PRINTF macro (#1612)cadmic
2024-01-16Create debug macros for LogUtils functions (#1610)cadmic
2024-01-12Replace most osSyncPrintf calls with PRINTF macro (#1598)cadmic
* Replace most osSyncPrintf calls with PRINTF macro * DEBUG -> OOT_DEBUG