diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-07 13:48:17 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-07 13:49:50 -0400 |
commit | 5928e2511db179bdc809f252a3b7fcd7798726db (patch) | |
tree | e7ce827057873f803f61a94853d717ed4407e713 /arm9/lib/include/CARD_rom.h | |
parent | 1762253800d072790303d8cd3b047bab25f8eaed (diff) | |
parent | d4575098dbd671e2b6fd27ad65b984502c90465b (diff) |
Merge branch 'libfs' of github.com:PikalaxALT/pokediamond into libfs
Diffstat (limited to 'arm9/lib/include/CARD_rom.h')
-rw-r--r-- | arm9/lib/include/CARD_rom.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arm9/lib/include/CARD_rom.h b/arm9/lib/include/CARD_rom.h index 327bc995..c43a2f06 100644 --- a/arm9/lib/include/CARD_rom.h +++ b/arm9/lib/include/CARD_rom.h @@ -1,6 +1,8 @@ #ifndef NITRO_CARD_ROM_H_ #define NITRO_CARD_ROM_H_ +#include "MI_exMemory.h" + typedef struct { u32 offset; @@ -8,4 +10,11 @@ typedef struct } CARDRomRegion; +static inline const CARDRomRegion * CARD_GetRomRegionOVT(MIProcessor target) +{ + return (target == MI_PROCESSOR_ARM9) + ? (const CARDRomRegion *)((const u8 *)HW_ROM_HEADER_BUF + 0x50) + : (const CARDRomRegion *)((const u8 *)HW_ROM_HEADER_BUF + 0x58); +} + #endif //NITRO_CARD_ROM_H_ |