mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Keep stream open so that the image loaders can be chained
This commit is contained in:
parent
44d972c876
commit
3346c00fab
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
offsetx = int.MinValue;
|
||||
offsety = int.MinValue;
|
||||
|
||||
using (BinaryReader reader = new BinaryReader(stream))
|
||||
using (BinaryReader reader = new BinaryReader(stream, System.Text.Encoding.UTF8, true))
|
||||
{
|
||||
int manufacturer = reader.ReadByte(); // 10=ZSoft
|
||||
int version = reader.ReadByte();
|
||||
|
@ -221,7 +221,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
offsetx = int.MinValue;
|
||||
offsety = int.MinValue;
|
||||
|
||||
using (BinaryReader reader = new BinaryReader(stream))
|
||||
using (BinaryReader reader = new BinaryReader(stream, System.Text.Encoding.UTF8, true))
|
||||
{
|
||||
read_header(reader);
|
||||
read_image_id(reader);
|
||||
|
@ -590,7 +590,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
if (isPng)
|
||||
{
|
||||
stream.Position = 8;
|
||||
using (BinaryReader reader = new BinaryReader(stream))
|
||||
using (BinaryReader reader = new BinaryReader(stream, System.Text.Encoding.UTF8, true))
|
||||
{
|
||||
// Read chunks untill we encounter either "grAb" or "IDAT"
|
||||
while (reader.BaseStream.Position < reader.BaseStream.Length)
|
||||
|
|
Loading…
Reference in a new issue