summaryrefslogtreecommitdiff
path: root/berry_fix/payload/include/flash.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2022-01-15 13:11:24 -0500
committerGitHub <noreply@github.com>2022-01-15 13:11:24 -0500
commit7fb97f9e2579b5b61c8c141d38c43ff07a24a393 (patch)
treecc9e9fc2aa2a0e3070e73e61a8f5ebc2d5fd397d /berry_fix/payload/include/flash.h
parentf8ab09b4b42b4a28a36a7cae3b545a812db4133d (diff)
parentcf41c783708b5b029b1d5fcb3dd9f06ee79fa532 (diff)
Merge pull request #483 from GriffinRichards/remove-berry-fix
Remove berry fix
Diffstat (limited to 'berry_fix/payload/include/flash.h')
-rw-r--r--berry_fix/payload/include/flash.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/berry_fix/payload/include/flash.h b/berry_fix/payload/include/flash.h
deleted file mode 100644
index 7fc35896d..000000000
--- a/berry_fix/payload/include/flash.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef GUARD_FLASH_H
-#define GUARD_FLASH_H
-
-#include "gba/gba.h"
-
-enum
-{
- SECTOR_DAMAGED,
- SECTOR_OK,
- SECTOR_CHECK, // unused
-};
-
-enum MsgBoxUpdateMessage
-{
- MSGBOX_WILL_NOW_UPDATE = 0,
- MSGBOX_HAS_BEEN_UPDATED,
- MSGBOX_UNABLE_TO_UPDATE,
- MSGBOX_NO_NEED_TO_UPDATE,
- MSGBOX_UPDATING
-};
-
-struct SaveSector
-{
- u8 data[0xFF4];
- u16 id;
- u16 checksum;
- u32 signature;
- u32 counter;
-}; // size is 0x1000
-
-// headless save section?
-struct UnkSaveSection
-{
- u8 data[0xFF4];
- u32 signature;
-}; // size is 0xFF8
-
-#define eSaveSection ((struct SaveSector *)0x2020000)
-
-#define NUM_SECTORS_PER_SAVE_SLOT 14 // Number of sectors occupied by a save slot
-#define FILE_SIGNATURE 0x08012025
-
-#define SAVE_STATUS_EMPTY 0
-#define SAVE_STATUS_OK 1
-#define SAVE_STATUS_NO_FLASH 4
-#define SAVE_STATUS_ERROR 0xFF
-
-bool32 flash_maincb_ident_is_valid(void);
-bool8 flash_maincb_read_save(u32);
-void msg_load_gfx(void);
-void msg_display(enum MsgBoxUpdateMessage);
-bool32 flash_maincb_check_need_reset_pacifidlog_tm(void);
-bool32 flash_maincb_reset_pacifidlog_tm(void);
-
-#endif //GUARD_FLASH_H