diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-06 18:14:26 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-06 18:14:26 -0400 |
commit | 9f3c697d9dee85da8c9bf4f708a340d5023194ec (patch) | |
tree | 157b41bdb102fbfa33da992fe4ea2e9e4490ada7 /arm9/lib/include/CARD_rom.h | |
parent | 8781fb36e9f9a20d6af11c77cfd669e27067e279 (diff) |
FS_overlay.c
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_ |