Alchemy
Loading...
Searching...
No Matches

SaveSummary Struct Reference

A save file's summary for the file screen: the leader's name, level and class, the area, play time, coins, Djinn and party. More...

#include <save_state.h>

Data Fields

u8 slotHeader [16]
 room for the record's SaveSlotHeader
u8 name [12]
 the leader's
u8 level
 the leader's; 0 for an empty file
u8 classId
 the leader's
u16 area
 area name number (Scene_GetAreaNameIndex)
u32 playTime
 frames
u32 coins
u8 djinn [4]
 the party's Djinn of each element
s8 party [5]
 up to four party members, ended by -1
s8 sendFlag
 Copied from GameState.unk20f, which saving at the end of the game sets; the file menu for cleared data lists a file without it as not cleared.
s8 flagCount
 how many of game flags 48 to 127 are set
u8 hasFlag20
 FLAG_CHILDHOOD is set; remaps the party's sprites.
u16 frames
 Low half of GameState.buildStamp; a file below the current stamp is listed as from an older build.
u8 unk38 [4]
 Filled on reading: the play time from the file's second record.
u32 checksum
 the sum of the 968 words from gGameFlagBytes
u16 paletteGlow: 8
 bits: 15..8 paletteGlowSub | 7..0 paletteGlow
u16 paletteGlowSub: 8
 GameState.paletteGlow[1].

Detailed Description

A save file's summary for the file screen: the leader's name, level and class, the area, play time, coins, Djinn and party.

Definition at line 29 of file save_state.h.

Field Documentation

◆ slotHeader

u8 SaveSummary::slotHeader[16]

room for the record's SaveSlotHeader

Definition at line 30 of file save_state.h.

◆ name

u8 SaveSummary::name[12]

the leader's

Definition at line 31 of file save_state.h.

Referenced by SaveMenu_DrawFileSummary(), SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ level

u8 SaveSummary::level

◆ classId

u8 SaveSummary::classId

the leader's

Definition at line 33 of file save_state.h.

Referenced by SaveMenu_DrawFileSummary(), and SaveState_BuildSummaryHeader().

◆ area

u16 SaveSummary::area

area name number (Scene_GetAreaNameIndex)

Definition at line 34 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ playTime

u32 SaveSummary::playTime

frames

Definition at line 35 of file save_state.h.

Referenced by SaveMenu_DrawFileSummary(), SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ coins

u32 SaveSummary::coins

Definition at line 36 of file save_state.h.

Referenced by SaveMenu_DrawFileSummary(), and SaveState_BuildSummaryHeader().

◆ djinn

u8 SaveSummary::djinn[4]

the party's Djinn of each element

Definition at line 37 of file save_state.h.

Referenced by SaveMenu_DrawDjinnCounts(), SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ party

s8 SaveSummary::party[5]

up to four party members, ended by -1

Definition at line 38 of file save_state.h.

Referenced by SaveMenu_ShowPartySprites(), SaveState_BuildSummaryHeader(), and SaveState_ScanRecordFlags().

◆ sendFlag

s8 SaveSummary::sendFlag

Copied from GameState.unk20f, which saving at the end of the game sets; the file menu for cleared data lists a file without it as not cleared.

Definition at line 41 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), SaveState_BuildSummaryHeader(), SaveState_CountRecordsExcludingFlagged(), and SaveState_ScanRecordFlags().

◆ flagCount

s8 SaveSummary::flagCount

how many of game flags 48 to 127 are set

Definition at line 42 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), SaveState_BuildSummaryHeader(), and SaveState_ScanRecordFlags().

◆ hasFlag20

u8 SaveSummary::hasFlag20

FLAG_CHILDHOOD is set; remaps the party's sprites.

Definition at line 43 of file save_state.h.

Referenced by SaveMenu_ShowPartySprites(), and SaveState_BuildSummaryHeader().

◆ paletteGlow

u16 SaveSummary::paletteGlow

bits: 15..8 paletteGlowSub | 7..0 paletteGlow

GameState.paletteGlow[0]

Definition at line 46 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ paletteGlowSub

u16 SaveSummary::paletteGlowSub

GameState.paletteGlow[1].

Definition at line 47 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ frames

u16 SaveSummary::frames

Low half of GameState.buildStamp; a file below the current stamp is listed as from an older build.

Definition at line 51 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), and SaveState_BuildSummaryHeader().

◆ unk38

u8 SaveSummary::unk38[4]

Filled on reading: the play time from the file's second record.

A file whose playTime differs is listed as corrupted.

Definition at line 54 of file save_state.h.

Referenced by SaveMenu_SelectSlot(), and SaveState_LoadSummaryRecords().

◆ checksum

u32 SaveSummary::checksum

the sum of the 968 words from gGameFlagBytes

Definition at line 55 of file save_state.h.

Referenced by SaveState_BuildSummaryHeader().