Skip to content

Commit

Permalink
Binary Input Stream Match
Browse files Browse the repository at this point in the history
Matched CBinaryInputStream::Align
  • Loading branch information
LordBozo committed Aug 5, 2024
1 parent be7581c commit 2ae08c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/P2/bis.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ INCLUDE_ASM(const s32, "P2/bis", Decompress__18CBinaryInputStream);

INCLUDE_ASM(const s32, "P2/bis", Read__18CBinaryInputStreamiPv);

INCLUDE_ASM(const s32, "P2/bis", Align__18CBinaryInputStreami);
void CBinaryInputStream::Align(int n)
{
int iVar1 = ((int)m_pb + (n - 1)) & -n;
m_cb -= (iVar1 - (int)m_pb);
m_pb = (byte*)iVar1;
}

uchar CBinaryInputStream::U8Read()
{
Expand Down

0 comments on commit 2ae08c6

Please sign in to comment.