From 3d150f3e1d84259b05f2831be35fa6fd38e43232 Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Tue, 14 Nov 2023 08:46:22 -0300 Subject: Misc fixes 1 (#1491) * Some low-hanging UB * document bug on z_file_nameset_NES.c * ALIGNED on audio data * document bug on decode * document bugs on Message_Decode * Format * More ALIGNED * Put the ALIGNED macro at the right like the other uses in the repo * review * fix Message Decode (cherry picked from commit abfbc7068816756f7ea3fa4a36ee0fe664c54c72) Co-authored-by: engineer124 * remove comments * Update src/overlays/gamestates/ovl_file_choose/z_file_choose_NES.c Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * format --------- Co-authored-by: engineer124 Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> --- src/code/z_common_data.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/code/z_common_data.c') diff --git a/src/code/z_common_data.c b/src/code/z_common_data.c index f0805c46b..e6d291831 100644 --- a/src/code/z_common_data.c +++ b/src/code/z_common_data.c @@ -1,6 +1,12 @@ -#include "global.h" +#include "z64save.h" -SaveContext gSaveContext; +#include "alignment.h" +#include "sequence.h" +#include "libc/stdbool.h" +#include "z64environment.h" +#include "z64transition.h" + +SaveContext gSaveContext ALIGNED(16); void SaveContext_Init(void) { bzero(&gSaveContext, sizeof(SaveContext)); -- cgit v1.2.3