Skip to content

Commit

Permalink
Match FileAbstraction::ReadByte
Browse files Browse the repository at this point in the history
  • Loading branch information
toadster172 committed Nov 7, 2024
1 parent 0ea51df commit 23d2ccd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pbg3/FileAbstraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ i32 FileAbstraction::ReadByte()
{
return -1;
}
return outBytesRead != 0 ? data : -1;
else
{
if (outBytesRead == 0)
{
return -1;
}
return data;
}
}

i32 FileAbstraction::WriteByte(u8 b)
Expand Down

0 comments on commit 23d2ccd

Please sign in to comment.