diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2024-11-08 02:27:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-07 17:27:19 -0800 |
| commit | fcc5cf828ded5d362b2e63a8868374a50df405ed (patch) | |
| tree | 530d7d6d8690599593f6588b04d10441e364b5c7 /src | |
| parent | 9cd9099a0431b369be39f111bf57051f544bead3 (diff) | |
libu64 (#1705)
* libu64
* libu64 -O2
* Add libu64.md
Diffstat (limited to 'src')
34 files changed, 33 insertions, 31 deletions
diff --git a/src/boot/boot_main.c b/src/boot/boot_main.c index 905582fe7..1ce87d3b0 100644 --- a/src/boot/boot_main.c +++ b/src/boot/boot_main.c @@ -2,7 +2,7 @@ #include "CIC6105.h" #include "idle.h" #include "stack.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "z64thread.h" StackEntry sBootStackInfo; diff --git a/src/boot/fault.c b/src/boot/fault.c index 36ed37da9..8f4739e04 100644 --- a/src/boot/fault.c +++ b/src/boot/fault.c @@ -50,7 +50,7 @@ #include "macros.h" #include "main.h" #include "vt.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "z64thread.h" FaultMgr* sFaultInstance; diff --git a/src/boot/idle.c b/src/boot/idle.c index 3c2138672..10ee965ce 100644 --- a/src/boot/idle.c +++ b/src/boot/idle.c @@ -6,7 +6,7 @@ #include "main.h" #include "segment_symbols.h" #include "stack.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "viconfig.h" #include "z64dma.h" #include "z64thread.h" diff --git a/src/boot/irqmgr.c b/src/boot/irqmgr.c index 7311414a6..f1dec7bc6 100644 --- a/src/boot/irqmgr.c +++ b/src/boot/irqmgr.c @@ -38,7 +38,7 @@ #include "macros.h" #include "scheduler.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "z64thread.h" vs32 gIrqMgrResetStatus = IRQ_RESET_STATUS_IDLE; diff --git a/src/boot/O2/debug.c b/src/boot/libu64/debug.c index 3933b585e..3933b585e 100644 --- a/src/boot/O2/debug.c +++ b/src/boot/libu64/debug.c diff --git a/src/boot/O2/gfxprint.c b/src/boot/libu64/gfxprint.c index c4294177c..53e16d962 100644 --- a/src/boot/O2/gfxprint.c +++ b/src/boot/libu64/gfxprint.c @@ -1,4 +1,4 @@ -#include "gfxprint.h" +#include "libu64/gfxprint.h" #include "attributes.h" #define GFXP_FLAG_HIRAGANA (1 << 0) diff --git a/src/boot/O2/loadfragment.c b/src/boot/libu64/loadfragment.c index 7fbcfb411..95a5287b0 100644 --- a/src/boot/O2/loadfragment.c +++ b/src/boot/libu64/loadfragment.c @@ -12,7 +12,7 @@ #include "global.h" #include "libc64/malloc.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" s32 gFragmentLogSeverity = 2; diff --git a/src/boot/O2/loadfragment2.c b/src/boot/libu64/loadfragment2.c index b8dacf82d..1899885fb 100644 --- a/src/boot/O2/loadfragment2.c +++ b/src/boot/libu64/loadfragment2.c @@ -8,7 +8,7 @@ */ #include "global.h" #include "libc64/malloc.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" s32 gOverlayLogSeverity = 2; diff --git a/src/boot/O2/mtxuty-cvt.c b/src/boot/libu64/mtxuty-cvt.c index f96de806f..f96de806f 100644 --- a/src/boot/O2/mtxuty-cvt.c +++ b/src/boot/libu64/mtxuty-cvt.c diff --git a/src/boot/O2/padutils.c b/src/boot/libu64/pad.c index 8460bc007..d169e56ec 100644 --- a/src/boot/O2/padutils.c +++ b/src/boot/libu64/pad.c @@ -1,4 +1,4 @@ -#include "padutils.h" +#include "libu64/pad.h" #include "PR/os_libc.h" diff --git a/src/boot/O2/padsetup.c b/src/boot/libu64/padsetup.c index ebbb5d828..c6a4a49d9 100644 --- a/src/boot/O2/padsetup.c +++ b/src/boot/libu64/padsetup.c @@ -1,4 +1,5 @@ -#include "global.h" +#include "ultra64.h" +#include "libu64/padsetup.h" s32 PadSetup_Init(OSMesgQueue* mq, u8* outMask, OSContStatus* status) { s32 ret; diff --git a/src/boot/O2/rcp_utils.c b/src/boot/libu64/rcp_utils.c index f587fad21..f587fad21 100644 --- a/src/boot/O2/rcp_utils.c +++ b/src/boot/libu64/rcp_utils.c diff --git a/src/boot/O2/stackcheck.c b/src/boot/libu64/stackcheck.c index d08dbfcb5..de321bddd 100644 --- a/src/boot/O2/stackcheck.c +++ b/src/boot/libu64/stackcheck.c @@ -1,4 +1,4 @@ -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "stdbool.h" #include "stdint.h" diff --git a/src/boot/O2/system_heap.c b/src/boot/libu64/system_heap.c index 7ad21b6ae..7ad21b6ae 100644 --- a/src/boot/O2/system_heap.c +++ b/src/boot/libu64/system_heap.c diff --git a/src/boot/z_std_dma.c b/src/boot/z_std_dma.c index 8e68eafff..053d460c7 100644 --- a/src/boot/z_std_dma.c +++ b/src/boot/z_std_dma.c @@ -26,7 +26,7 @@ #include "macros.h" #include "segment_symbols.h" #include "stack.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "yaz0.h" #include "z64thread.h" diff --git a/src/code/PreRender.c b/src/code/PreRender.c index 8cae8a52a..1b9bd0b87 100644 --- a/src/code/PreRender.c +++ b/src/code/PreRender.c @@ -18,7 +18,7 @@ #include "gfxalloc.h" #include "slowly.h" #include "stack.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "sys_ucode.h" /** diff --git a/src/code/game.c b/src/code/game.c index fe8a9915a..290f474a9 100644 --- a/src/code/game.c +++ b/src/code/game.c @@ -2,7 +2,7 @@ #include "global.h" #include "audiomgr.h" -#include "debug.h" +#include "libu64/debug.h" #include "gfx.h" #include "gfxalloc.h" #include "idle.h" diff --git a/src/code/main.c b/src/code/main.c index e2822a9a8..953cac7c0 100644 --- a/src/code/main.c +++ b/src/code/main.c @@ -35,10 +35,10 @@ struct PadMgr gPadMgr; #include "regs.h" #include "segment_symbols.h" #include "stack.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "scheduler.h" #include "sys_initial_check.h" -#include "system_heap.h" +#include "libu64/system_heap.h" #include "z64nmi_buff.h" #include "z64thread.h" diff --git a/src/code/padmgr.c b/src/code/padmgr.c index 53eeadb99..0655bb232 100644 --- a/src/code/padmgr.c +++ b/src/code/padmgr.c @@ -34,6 +34,7 @@ #include "padmgr.h" #include "libc64/sprintf.h" +#include "libu64/padsetup.h" #include "PR/os_motor.h" #include "controller.h" diff --git a/src/code/sched.c b/src/code/sched.c index 48cc5ed6d..78f589f45 100644 --- a/src/code/sched.c +++ b/src/code/sched.c @@ -6,7 +6,7 @@ #include "idle.h" #include "macros.h" #include "regs.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "viconfig.h" #include "z64speed_meter.h" #include "z64thread.h" diff --git a/src/code/sys_flashrom.c b/src/code/sys_flashrom.c index 75286d807..27d7c61fd 100644 --- a/src/code/sys_flashrom.c +++ b/src/code/sys_flashrom.c @@ -6,7 +6,7 @@ #include "fault.h" #include "macros.h" #include "stack.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "z64thread.h" OSMesgQueue sFlashromMesgQueue; diff --git a/src/code/sys_slowly.c b/src/code/sys_slowly.c index 47170db62..fe048650d 100644 --- a/src/code/sys_slowly.c +++ b/src/code/sys_slowly.c @@ -11,7 +11,7 @@ #include "slowly.h" #include "global.h" -#include "stackcheck.h" +#include "libu64/stackcheck.h" #include "z64thread.h" void Slowly_Main(SlowlyMgr* slowly) { diff --git a/src/code/z_DLF.c b/src/code/z_DLF.c index e1091e593..8c531a3b1 100644 --- a/src/code/z_DLF.c +++ b/src/code/z_DLF.c @@ -2,7 +2,7 @@ #include "global.h" #include "libc64/malloc.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" void Overlay_LoadGameState(GameStateOverlay* overlayEntry) { void* vramStart; diff --git a/src/code/z_actor.c b/src/code/z_actor.c index dbc28a11b..532aecd65 100644 --- a/src/code/z_actor.c +++ b/src/code/z_actor.c @@ -6,7 +6,7 @@ #include "fault.h" #include "attributes.h" #include "sys_cfb.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" // Variables are put before most headers as a hacky way to bypass bss reordering FaultClient sActorFaultClient; // 2 funcs diff --git a/src/code/z_debug_mode.c b/src/code/z_debug_mode.c index ae4c877ce..8e24982e8 100644 --- a/src/code/z_debug_mode.c +++ b/src/code/z_debug_mode.c @@ -3,7 +3,7 @@ #include "color.h" #include "gfx.h" #include "gfxalloc.h" -#include "gfxprint.h" +#include "libu64/gfxprint.h" #include "macros.h" typedef struct { diff --git a/src/code/z_effect_soft_sprite.c b/src/code/z_effect_soft_sprite.c index 4ff5c72d6..8fd5d2568 100644 --- a/src/code/z_effect_soft_sprite.c +++ b/src/code/z_effect_soft_sprite.c @@ -1,7 +1,7 @@ #include "z64effect_ss.h" #include "tha.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" #include "zelda_arena.h" #include "global.h" diff --git a/src/code/z_kaleido_manager.c b/src/code/z_kaleido_manager.c index 8b43b255f..072c460ab 100644 --- a/src/code/z_kaleido_manager.c +++ b/src/code/z_kaleido_manager.c @@ -2,7 +2,7 @@ #include "global.h" #include "fault.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" #define KALEIDO_OVERLAY(name) \ { NULL, ROM_FILE(ovl_##name), SEGMENT_START(ovl_##name), SEGMENT_END(ovl_##name), 0, #name } diff --git a/src/code/z_overlay.c b/src/code/z_overlay.c index a72a979ce..b910a13c8 100644 --- a/src/code/z_overlay.c +++ b/src/code/z_overlay.c @@ -6,7 +6,7 @@ #include "z64transition.h" -#include "loadfragment.h" +#include "libu64/loadfragment.h" #include "z64lib.h" #include "zelda_arena.h" diff --git a/src/code/z_pause.c b/src/code/z_pause.c index 9f6f4a226..f53cb9152 100644 --- a/src/code/z_pause.c +++ b/src/code/z_pause.c @@ -22,7 +22,7 @@ #include "z64frameadvance.h" #include "controller.h" -#include "padutils.h" +#include "libu64/pad.h" #include "stdbool.h" void FrameAdvance_Init(FrameAdvanceContext* frameAdvCtx) { diff --git a/src/code/z_play.c b/src/code/z_play.c index 68d6014d5..49a902547 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -35,7 +35,7 @@ u8 sMotionBlurStatus; #include "overlays/gamestates/ovl_daytelop/z_daytelop.h" #include "overlays/gamestates/ovl_opening/z_opening.h" #include "overlays/gamestates/ovl_file_choose/z_file_select.h" -#include "debug.h" +#include "libu64/debug.h" s32 gDbgCamEnabled = false; u8 D_801D0D54 = false; diff --git a/src/code/z_room.c b/src/code/z_room.c index cb8d42666..e08fb1d96 100644 --- a/src/code/z_room.c +++ b/src/code/z_room.c @@ -1,6 +1,6 @@ #include "global.h" #include "PR/gs2dex.h" -#include "debug.h" +#include "libu64/debug.h" #include "sys_ucode.h" void Room_Noop(PlayState* play, Room* room, Input* input, s32 arg3) { diff --git a/src/code/z_vimode.c b/src/code/z_vimode.c index f4da13c39..bef6c9b4a 100644 --- a/src/code/z_vimode.c +++ b/src/code/z_vimode.c @@ -4,10 +4,10 @@ #include "PR/viint.h" #include "controller.h" -#include "debug.h" +#include "libu64/debug.h" #include "macros.h" #include "main.h" -#include "padutils.h" +#include "libu64/pad.h" #include "regs.h" typedef struct { diff --git a/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c b/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c index c58425222..7a378f878 100644 --- a/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c +++ b/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c @@ -7,7 +7,7 @@ #include "z_en_horse_game_check.h" #include "z64horse.h" #include "assets/objects/object_horse_game_check/object_horse_game_check.h" -#include "debug.h" +#include "libu64/debug.h" #define FLAGS (ACTOR_FLAG_10) diff --git a/src/overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.c b/src/overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.c index c76a86177..07de4648b 100644 --- a/src/overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.c +++ b/src/overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.c @@ -5,7 +5,7 @@ */ #include "z_eff_ss_kakera.h" -#include "debug.h" +#include "libu64/debug.h" #define rReg0 regs[0] #define rGravity regs[1] |
