summaryrefslogtreecommitdiff
path: root/include/Message/BMG.hpp
diff options
context:
space:
mode:
authorAetias <144526980+AetiasHax@users.noreply.github.com>2026-05-04 22:07:42 +0200
committerGitHub <noreply@github.com>2026-05-04 22:07:42 +0200
commitb44496319d3027a625fcf876cf22e467720355df (patch)
tree4eff75d3a7855824487f1e87c99394640fb3387d /include/Message/BMG.hpp
parentfe6681a298f089c5bbbee077ad9c06dc801df476 (diff)
ActorShopItem 98% (#151)
* ActorShopItem 93% * Fix build * Add missing symbols to usa * Document BMG message ID functions * Create bmg.py for inspecting BMG files * ActorShopItem 98% * Match func_ov031_0217dfec * Port reloc changes to usa * Make `ModelRender::GetLcdcAddress` non-const
Diffstat (limited to 'include/Message/BMG.hpp')
-rw-r--r--include/Message/BMG.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/Message/BMG.hpp b/include/Message/BMG.hpp
index ac0c183f..6ef203e3 100644
--- a/include/Message/BMG.hpp
+++ b/include/Message/BMG.hpp
@@ -10,6 +10,8 @@
#define BMG_GET_MSG_ADDR(pGroups, flags) \
((u32) (pGroups)->entries[(flags) >> 0x10].pDAT1 + (BMG_GET_MSG_OFFSET((pGroups), (flags)) & ~1))
+#define BMG_ID(file, entry) (((file) << 0x10) | (entry))
+
enum BMGTag {
/* "INF1" */ BMG_TAG_INF1 = '1FNI',
/* "FLW1" */ BMG_TAG_FLW1 = '1WLF',