summaryrefslogtreecommitdiff
path: root/arm9/lib/include/CARD_rom.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/lib/include/CARD_rom.h')
-rw-r--r--arm9/lib/include/CARD_rom.h9
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_