summaryrefslogtreecommitdiff
path: root/src/save.c
diff options
context:
space:
mode:
authorMarijn van der Werf <marijn.vanderwerf@gmail.com>2016-12-01 03:51:24 +0100
committerYamaArashi <YamaArashi@users.noreply.github.com>2016-11-30 18:51:24 -0800
commit4258e60771aa9fdabd678930eca534423bd371b8 (patch)
treeecca2ee7641abc0562f39b6c7dd907af2184e102 /src/save.c
parent831f8cd4fd94613d6b52d87df1b4903bedfaa717 (diff)
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
Diffstat (limited to 'src/save.c')
-rw-r--r--src/save.c33
1 files changed, 3 insertions, 30 deletions
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;