From 4258e60771aa9fdabd678930eca534423bd371b8 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Thu, 1 Dec 2016 03:51:24 +0100 Subject: Declare more non-static functions in header files (#111) * Declare more non-static functions in header files * Use `(void)` for functions without arguments. * Move global-included data to seperate headers * Don't import types or global in header * Fix fieldmap imports * Revert in-code changes * Add missing newlines --- src/save.c | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'src/save.c') diff --git a/src/save.c b/src/save.c index c6b82bc0a..6d9ec8b03 100644 --- a/src/save.c +++ b/src/save.c @@ -1,29 +1,10 @@ #include "global.h" +#include "save.h" +#include "gba/gba.h" +#include "rom4.h" #include "gba/flash_internal.h" -struct SaveSectionLocation -{ - void *data; - u16 size; -}; - -struct SaveSection -{ - u8 data[0xFF4]; - u16 id; - u16 checksum; - u32 unknown; - u32 counter; -}; - -struct UnkSaveSection -{ - u8 data[0xFF4]; - u32 unknown; -}; - extern u32 sub_8053108(u8); -extern void sav12_xor_increment(u8); extern u32 ProgramFlashSectorAndVerifyNBytes(u16 sectorNum, u8 *src, u32 n); extern struct SaveSection unk_2000000; @@ -46,14 +27,6 @@ extern struct SaveSectionLocation gSaveSectionLocations[]; extern struct SaveSectionLocation gHallOfFameSaveSectionLocations[]; extern u8 gUnknown_08401E24[]; -u8 sub_81252D8(u16, struct SaveSectionLocation *); -u8 sub_8125440(u8, u8 *); -u8 sub_81255B8(u16, struct SaveSectionLocation *); -u8 sub_81258BC(u16, struct SaveSectionLocation *); -u8 sub_8125BF8(u8, struct SaveSection *); -u8 sub_8125974(struct SaveSectionLocation *); -u16 sub_8125C10(void *, u16); - void ClearSaveData(void) { u16 i; -- cgit v1.2.3