mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 04:44:44 +00:00
Remove "z64" prefix from all headers (#2518)
* z64 - a * z64 - b * z64 - c * z64 - d * z64 - e * z64 - f * z64 - g * z64 - h * z64 - i * z64 - l * z64 - m * z64 - o * z64 - p * z64 - q * z64 - r * z64 - s * z64 - t * z64 - v * restore file * fix merge * fix merge --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
parent
e8b708a448
commit
28cc9d68cf
1255 changed files with 2596 additions and 2594 deletions
38
include/sram.h
Normal file
38
include/sram.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#ifndef SRAM_H
|
||||
#define SRAM_H
|
||||
|
||||
#include "ultra64/ultratypes.h"
|
||||
|
||||
struct FileSelectState;
|
||||
struct GameState;
|
||||
|
||||
typedef struct SramContext {
|
||||
/* 0x00 */ u8* readBuff;
|
||||
} SramContext; // size = 0x4
|
||||
|
||||
#define SRAM_SIZE 0x8000
|
||||
#define SRAM_HEADER_SIZE 0x10
|
||||
|
||||
typedef enum SramHeaderField {
|
||||
/* 0x00 */ SRAM_HEADER_SOUND,
|
||||
/* 0x01 */ SRAM_HEADER_Z_TARGET,
|
||||
/* 0x02 */ SRAM_HEADER_LANGUAGE,
|
||||
/* 0x03 */ SRAM_HEADER_MAGIC // must be the value in `sSramDefaultHeader` for save to be considered valid
|
||||
} SramHeaderField;
|
||||
|
||||
extern u16 gSramSlotOffsets[];
|
||||
|
||||
void Sram_InitNewSave(void);
|
||||
void Sram_InitDebugSave(void);
|
||||
void Sram_OpenSave(SramContext* sramCtx);
|
||||
void Sram_WriteSave(SramContext* sramCtx);
|
||||
void Sram_VerifyAndLoadAllSaves(struct FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_InitSave(struct FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_EraseSave(struct FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_CopySave(struct FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_WriteSramHeader(SramContext* sramCtx);
|
||||
void Sram_InitSram(struct GameState* gameState, SramContext* sramCtx);
|
||||
void Sram_Alloc(struct GameState* gameState, SramContext* sramCtx);
|
||||
void Sram_Init(struct GameState* gameState, SramContext* sramCtx);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue