mirror of
https://github.com/red031000/nitrogfx.git
synced 2025-06-18 13:15:35 -04:00
Update KBEC size to account for 4-byte aligment
This commit is contained in:
parent
7b048127ad
commit
6614272027
3
gfx.c
3
gfx.c
@ -1112,6 +1112,9 @@ void WriteNtrCell(char *path, struct JsonToCellOptions *options)
|
|||||||
kbecSize += options->cells[idx / iterNum]->oamCount * 0x06;
|
kbecSize += options->cells[idx / iterNum]->oamCount * 0x06;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// KBEC size is padded to be 4-byte aligned
|
||||||
|
kbecSize += kbecSize % 4;
|
||||||
|
|
||||||
unsigned int totalSize = (options->labelEnabled > 0 ? 0x34 : 0x20) + kbecSize;
|
unsigned int totalSize = (options->labelEnabled > 0 ? 0x34 : 0x20) + kbecSize;
|
||||||
|
|
||||||
if (options->labelEnabled)
|
if (options->labelEnabled)
|
||||||
|
Loading…
Reference in New Issue
Block a user