mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
use Stream.WriteByte() to overwrite signature.
This commit is contained in:
parent
53b7077786
commit
9e9e88f09d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user