Skip to content

Commit

Permalink
Fixed the new ReadInto() in ReaderStream, so it call the right read m…
Browse files Browse the repository at this point in the history
…ethod. This fixes MO3 loading, which failed before.
  • Loading branch information
neumatho committed Dec 9, 2024
1 parent 8523f80 commit 2c05461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/NostalgicPlayerKit/Streams/ReaderStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public override int Read(byte[] buffer, int offset, int count)
/********************************************************************/
public void ReadInto(byte[] buffer, int offset, int count)
{
int read = wrapperStream.Read(buffer, offset, count);
EndOfStream = read < count;
// Need to call Read() and not the wrapper, since it could be overridden
int read = Read(buffer, offset, count);
}


Expand Down

0 comments on commit 2c05461

Please sign in to comment.