Poke_Transporter_GB/include/save.h
Remnants of Forgotten Disney eb87ab3c03 Inital implementation of Save.C
2023-12-03 14:22:04 -06:00

23 lines
604 B
C

//Created by Lorenzooone https://github.com/Lorenzooone/Pokemon-Gen3-to-Gen-X
#ifndef SAVE__
#define SAVE__
#include <stddef.h>
#define SECTOR_SIZE_BITS 12
#define SECTOR_SIZE (1<<SECTOR_SIZE_BITS)
u32 read_int_save(uintptr_t);
u16 read_short_save(uintptr_t);
u8 read_byte_save(uintptr_t);
void copy_save_to_ram(uintptr_t, u8*, size_t);
void write_int_save(uintptr_t, u32);
void write_short_save(uintptr_t, u16);
void write_byte_save(uintptr_t, u8);
void copy_ram_to_save(u8*, uintptr_t, size_t);
u8 is_save_correct(u8*, uintptr_t, size_t);
void erase_sector(uintptr_t);
void init_bank(void);
#endif