Remove redundant skip padding function

This commit is contained in:
JohnFiddleystein 2019-08-04 15:38:21 +01:00
parent 3011a153aa
commit 9ae15ee63c
3 changed files with 0 additions and 7 deletions

Binary file not shown.

View file

@ -40,11 +40,6 @@ namespace FirstPlugin
} }
} }
private void SkipPadding(FileReader stream, int offset)
{
stream.Seek((~(offset - 1) & (stream.Position + offset - 1)) - stream.Position);
}
public static Dictionary<ushort, TEX_FORMAT> FormatsTXE = new Dictionary<ushort, TEX_FORMAT>() public static Dictionary<ushort, TEX_FORMAT> FormatsTXE = new Dictionary<ushort, TEX_FORMAT>()
{ {
[0] = TEX_FORMAT.RGB5A3, [0] = TEX_FORMAT.RGB5A3,
@ -57,7 +52,6 @@ namespace FirstPlugin
[7] = TEX_FORMAT.RGBA32, [7] = TEX_FORMAT.RGBA32,
}; };
public void Load(System.IO.Stream stream) public void Load(System.IO.Stream stream)
{ {
Text = FileName; Text = FileName;
@ -83,7 +77,6 @@ namespace FirstPlugin
PlatformSwizzle = PlatformSwizzle.Platform_Gamecube; PlatformSwizzle = PlatformSwizzle.Platform_Gamecube;
int imageDataSize = reader.ReadInt32(); int imageDataSize = reader.ReadInt32();
SkipPadding(reader, 0x20);
reader.SeekBegin(32); reader.SeekBegin(32);