mirror of
https://github.com/zeldaret/oot
synced 2026-08-13 04:09:38 -04:00
8926b08582
* Force dword alignment on OSPifRam * force_structure_alignment on each Font buffer * Add ALIGNED8 macro to gSaveContext to ensure alignment * create alignment.h header and use ALIGN8 in PLAYER_LIMB_BUF_COUNT * add comment in common_data * Roman's suggestion * player_limb_buf_count Co-authored-by: fig02 <fig02srl@gmail.com>
24 lines
761 B
C
24 lines
761 B
C
#include "global.h"
|
|
|
|
// The use of ALIGNED8 here is just a temporary solution until the SaveContext is re-structured
|
|
ALIGNED8 SaveContext gSaveContext;
|
|
u32 D_8015FA88;
|
|
u32 D_8015FA8C;
|
|
|
|
void SaveContext_Init(void) {
|
|
bzero(&gSaveContext, sizeof(gSaveContext));
|
|
D_8015FA88 = 0;
|
|
D_8015FA8C = 0;
|
|
gSaveContext.seqId = (u8)NA_BGM_DISABLED;
|
|
gSaveContext.natureAmbienceId = NATURE_ID_DISABLED;
|
|
gSaveContext.forcedSeqId = NA_BGM_GENERAL_SFX;
|
|
gSaveContext.nextCutsceneIndex = 0xFFEF;
|
|
gSaveContext.cutsceneTrigger = 0;
|
|
gSaveContext.chamberCutsceneNum = 0;
|
|
gSaveContext.nextDayTime = 0xFFFF;
|
|
gSaveContext.skyboxTime = 0;
|
|
gSaveContext.dogIsLost = true;
|
|
gSaveContext.nextTransition = 0xFF;
|
|
gSaveContext.unk_13EE = 50;
|
|
}
|