Add Seek to AllocationTableStream

This commit is contained in:
Alex Barney 2018-10-14 18:00:46 -05:00
parent ae649182ce
commit 6935983b71

View file

@ -53,7 +53,20 @@ namespace LibHac.Save
public override long Seek(long offset, SeekOrigin origin)
{
throw new NotImplementedException();
switch (origin)
{
case SeekOrigin.Begin:
Position = offset;
break;
case SeekOrigin.Current:
Position += offset;
break;
case SeekOrigin.End:
Position = Length - offset;
break;
}
return Position;
}
public override void SetLength(long value)