1
0
mirror of https://github.com/blawar/ooot.git synced 2024-07-04 18:13:37 +00:00
ooot/include/z64sram.h

17 lines
375 B
C
Raw Normal View History

2021-12-27 19:23:03 +00:00
#pragma once
2022-02-12 19:50:06 +00:00
struct SramContext {
2021-12-27 19:23:03 +00:00
/* 0x00 */ u8* readBuff;
2022-02-12 19:50:06 +00:00
}; // size = 0x4
2021-12-27 19:23:03 +00:00
#define SRAM_SIZE 0x8000
#define SRAM_HEADER_SIZE 0x10
2022-02-12 19:50:06 +00:00
enum SramHeaderField {
2021-12-27 19:23:03 +00:00
/* 0x00 */ SRAM_HEADER_SOUND,
/* 0x01 */ SRAM_HEADER_ZTARGET,
/* 0x02 */ SRAM_HEADER_LANGUAGE,
/* 0x03 */ SRAM_HEADER_MAGIC // must be the value of `sZeldaMagic` for save to be considered valid
2022-02-12 19:50:06 +00:00
};
2021-12-27 19:23:03 +00:00