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();
|
input = new MemoryStream();
|
||||||
file.CopyTo (input);
|
file.CopyTo (input);
|
||||||
}
|
}
|
||||||
// FIXME: doesn't work for memory streams with non-zero origin
|
input.Position = 1;
|
||||||
var buf = input.GetBuffer();
|
input.WriteByte ((byte)'g');
|
||||||
buf[1] = (byte)'g';
|
input.WriteByte ((byte)'g');
|
||||||
buf[2] = (byte)'g';
|
input.WriteByte ((byte)'S');
|
||||||
buf[3] = (byte)'S';
|
|
||||||
input.Position = 0;
|
input.Position = 0;
|
||||||
var ogg = new OggInput (input);
|
var ogg = new OggInput (input);
|
||||||
if (file != input)
|
if (file != input)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user