mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 23:05:08 -04:00
3d150f3e1d
* 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 <engineer124engineer124@gmail.com> * 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 <engineer124engineer124@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
31 lines
969 B
C
31 lines
969 B
C
#include "z64save.h"
|
|
|
|
#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));
|
|
|
|
gSaveContext.save.playerForm = 0;
|
|
gSaveContext.seqId = (u8)NA_BGM_DISABLED;
|
|
gSaveContext.ambienceId = AMBIENCE_ID_DISABLED;
|
|
gSaveContext.forcedSeqId = NA_BGM_GENERAL_SFX;
|
|
gSaveContext.nextCutsceneIndex = 0xFFEF;
|
|
gSaveContext.cutsceneTrigger = 0;
|
|
gSaveContext.chamberCutsceneNum = 0;
|
|
gSaveContext.nextDayTime = NEXT_TIME_NONE;
|
|
gSaveContext.skyboxTime = 0;
|
|
gSaveContext.dogIsLost = true;
|
|
gSaveContext.nextTransitionType = TRANS_NEXT_TYPE_DEFAULT;
|
|
gSaveContext.prevHudVisibility = HUD_VISIBILITY_ALL;
|
|
|
|
gSaveContext.options.language = LANGUAGE_ENG;
|
|
gSaveContext.options.audioSetting = SAVE_AUDIO_STEREO;
|
|
gSaveContext.options.zTargetSetting = 0;
|
|
}
|