mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 04:53:09 +00:00
Fix build errors one more time
This commit is contained in:
parent
ffb41778c3
commit
c960404f42
2 changed files with 18 additions and 9 deletions
|
@ -118,7 +118,8 @@ namespace LayoutBXLYT
|
|||
for (int i = 0; i < activeAttributeCount; i++)
|
||||
{
|
||||
int size = 0;
|
||||
string name = GL.GetActiveAttrib(program, i, out size, out ActiveAttribType type);
|
||||
ActiveAttribType type;
|
||||
string name = GL.GetActiveAttrib(program, i, out size, out type);
|
||||
int location = GL.GetAttribLocation(program, name);
|
||||
|
||||
// Overwrite existing vertex attributes.
|
||||
|
@ -134,7 +135,8 @@ namespace LayoutBXLYT
|
|||
for (int i = 0; i < activeAttributeCount; i++)
|
||||
{
|
||||
int size = 0;
|
||||
string name = GL.GetActiveUniform(program, i, out size, out ActiveUniformType type);
|
||||
ActiveUniformType type;
|
||||
string name = GL.GetActiveUniform(program, i, out size, out type);
|
||||
int location = GL.GetUniformLocation(program, name);
|
||||
|
||||
// Overwrite existing vertex attributes.
|
||||
|
|
|
@ -921,10 +921,13 @@ namespace LayoutBXLYT.Cafe
|
|||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public WindowContent Content { get; set; }
|
||||
|
||||
public List<WindowFrame> WindowFrames = new List<WindowFrame>();
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public List<WindowFrame> WindowFrames { get; set; }
|
||||
|
||||
public WND1(FileReader reader, Header header) : base(reader)
|
||||
{
|
||||
WindowFrames = new List<WindowFrame>();
|
||||
|
||||
long pos = reader.Position - 0x54;
|
||||
|
||||
StretchLeft = reader.ReadUInt16();
|
||||
|
@ -950,7 +953,7 @@ namespace LayoutBXLYT.Cafe
|
|||
foreach (int offset in offsets)
|
||||
{
|
||||
reader.SeekBegin(pos + offset);
|
||||
WindowFrames.Add(new WindowFrame(reader));
|
||||
WindowFrames.Add(new WindowFrame(reader, header));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1054,20 +1057,24 @@ namespace LayoutBXLYT.Cafe
|
|||
|
||||
public class WindowFrame
|
||||
{
|
||||
public ushort MaterialIndex;
|
||||
public byte Flip;
|
||||
public Material material { get; set; }
|
||||
|
||||
public WindowFrame(FileReader reader)
|
||||
public ushort MaterialIndex;
|
||||
public byte TextureFlip;
|
||||
|
||||
public WindowFrame(FileReader reader, Header header)
|
||||
{
|
||||
MaterialIndex = reader.ReadUInt16();
|
||||
Flip = reader.ReadByte();
|
||||
TextureFlip = reader.ReadByte();
|
||||
reader.ReadByte(); //padding
|
||||
|
||||
material = header.MaterialList.Materials[MaterialIndex];
|
||||
}
|
||||
|
||||
public void Write(FileWriter writer)
|
||||
{
|
||||
writer.Write(MaterialIndex);
|
||||
writer.Write(Flip);
|
||||
writer.Write(TextureFlip);
|
||||
writer.Write((byte)0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue