summaryrefslogtreecommitdiff
path: root/src/Main/Message/BMG.cpp
diff options
context:
space:
mode:
authorYanis002 <35189056+Yanis002@users.noreply.github.com>2025-01-24 22:11:59 +0100
committerYanis002 <35189056+Yanis002@users.noreply.github.com>2025-01-24 22:11:59 +0100
commit660c5e96554153dda38e8d2185db07ae70432266 (patch)
tree7ee7d040779182aa4ad81b5758009b8c4b6cb822 /src/Main/Message/BMG.cpp
parent3de7041c34072cca1942d46441e5811344db6150 (diff)
convert BMGGroups to a class
Diffstat (limited to 'src/Main/Message/BMG.cpp')
-rw-r--r--src/Main/Message/BMG.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Main/Message/BMG.cpp b/src/Main/Message/BMG.cpp
index db3623b8..69dae832 100644
--- a/src/Main/Message/BMG.cpp
+++ b/src/Main/Message/BMG.cpp
@@ -135,7 +135,7 @@ ARM u16 func_0203728c(BMGFileInfo* pFileInfo, unk32 param_2) {
return -1;
}
-THUMB void func_020372f0(BMGGroups* pGroups, BMGFileIndex eIndex, s16 unk_18) {
+THUMB void BMGGroups::func_020372f0(BMGFileIndex eIndex, s16 unk_18) {
char bmgPath[64];
BMGFileInfo bmgFile;
u32* pFile;
@@ -168,30 +168,30 @@ THUMB void func_020372f0(BMGGroups* pGroups, BMGFileIndex eIndex, s16 unk_18) {
// assign sections and set the file info in the groups entries
groupId = func_020371c8(&bmgFile, pFile, unk_18);
- pGroups->entries[groupId] = bmgFile;
- pGroups->entries[groupId].groupId = groupId;
+ this->entries[groupId] = bmgFile;
+ this->entries[groupId].groupId = groupId;
}
-THUMB void func_020373b4(BMGGroups* pGroups, s16 unk_18) {
+THUMB void BMGGroups::func_020373b4(s16 unk_18) {
s32 i;
- for (i = 0; i < pGroups->numEntries; i++) {
- if (pGroups->entries[i].unk_18 == unk_18) {
- func_0202d590(pGroups->entries[i].unk_14);
- func_020371b4(&pGroups->entries[i]);
+ for (i = 0; i < this->numEntries; i++) {
+ if (this->entries[i].unk_18 == unk_18) {
+ func_0202d590(this->entries[i].unk_14);
+ func_020371b4(&this->entries[i]);
}
}
}
-ARM u32 func_020373ec(BMGGroups* pGroups, unk32 param_2) {
+ARM u32 BMGGroups::func_020373ec(unk32 param_2) {
u16 dVar1;
u16 uVar2;
s32 i;
dVar1 = -1;
- for (i = 0; i < pGroups->numEntries; i++) {
- uVar2 = func_0203728c(&pGroups->entries[i], param_2);
+ for (i = 0; i < this->numEntries; i++) {
+ uVar2 = func_0203728c(&this->entries[i], param_2);
if (uVar2 != dVar1) {
return uVar2 | i << 0x10;