mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-04-17 14:45:58 -05:00
23 lines
604 B
C
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
|