diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-03-06 13:10:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 13:10:23 -0500 |
commit | 85ca62e823e563ebec97e9e340fdde0af42d9221 (patch) | |
tree | f0c32eaf666bfdff84e58adcb3852503e0f734d2 /include | |
parent | f483a93beaaeff82ad0a6b8b6e67a5a1b25ec989 (diff) | |
parent | 3b88ba66376f13deb5338cd61b608adc901cc27e (diff) |
Merge pull request #292 from PikalaxALT/clear_save_data_screen
Decomp and doc clear_save_data_screen
Diffstat (limited to 'include')
-rw-r--r-- | include/gba/macro.h | 10 | ||||
-rw-r--r-- | include/strings.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/gba/macro.h b/include/gba/macro.h index 6cf2e1651..cc8535305 100644 --- a/include/gba/macro.h +++ b/include/gba/macro.h @@ -171,6 +171,16 @@ #define DmaFill16Defvars(dmaNum, value, dest, size) DmaFillDefvars(dmaNum, value, dest, size, 16) #define DmaFill32Defvars(dmaNum, value, dest, size) DmaFillDefvars(dmaNum, value, dest, size, 32) +#define DmaClearDefvars(dmaNum, dest, size, bit) \ +{ \ + void *_dest = dest; \ + u32 _size = size; \ + DmaClear##bit(dmaNum, _dest, _size); \ +} + +#define DmaClear16Defvars(dmaNum, dest, size) DmaClearDefvars(dmaNum, dest, size, 16) +#define DmaClear32Defvars(dmaNum, dest, size) DmaClearDefvars(dmaNum, dest, size, 32) + #define IntrEnable(flags) \ { \ u16 imeTemp; \ diff --git a/include/strings.h b/include/strings.h index f2207e7a7..d5c6f4b58 100644 --- a/include/strings.h +++ b/include/strings.h @@ -1309,4 +1309,8 @@ extern const u8 gText_QuestLog_VictoryRoad[]; extern const u8 gText_QuestLog_PokemonLeague[]; extern const u8 gText_QuestLog_CeruleanCave[]; +// clear_save_data_screen +extern const u8 gUnknown_841B69E[]; +extern const u8 gUnknown_841B6B9[]; + #endif //GUARD_STRINGS_H |