use Stream.WriteByte() to overwrite signature.

This commit is contained in:
morkt 2015-05-13 23:49:08 +04:00
parent 53b7077786
commit 9e9e88f09d

View File

@ -43,11 +43,10 @@ namespace GameRes.Formats.ShiinaRio
input = new MemoryStream();
file.CopyTo (input);
}
// FIXME: doesn't work for memory streams with non-zero origin
var buf = input.GetBuffer();
buf[1] = (byte)'g';
buf[2] = (byte)'g';
buf[3] = (byte)'S';
input.Position = 1;
input.WriteByte ((byte)'g');
input.WriteByte ((byte)'g');
input.WriteByte ((byte)'S');
input.Position = 0;
var ogg = new OggInput (input);
if (file != input)