diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 5764661a..ace663d2 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs b/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs index 27d79b1d..ecffbf21 100644 --- a/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs +++ b/Switch_FileFormatsMain/FileFormats/Effects/PCTL.cs @@ -119,6 +119,8 @@ namespace FirstPlugin public class Header { public List emitterSets = new List(); + public List Textures = new List(); + public bool IsSPBD = false; public uint EffectNameTableOffset; @@ -152,8 +154,9 @@ namespace FirstPlugin uint ShaderParamTableOffset = reader.ReadUInt32(); uint ShaderParamTableSize = reader.ReadUInt32(); - var groupEmitterSets = new TreeNode(); - groupEmitterSets.Text = "Emitter Sets"; + var groupEmitterSets = new TreeNode("Emitter Sets"); + var textureFolder = new TreeNode("Textures"); + pctl.Nodes.Add(textureFolder); pctl.Nodes.Add(groupEmitterSets); if (IsSPBD) @@ -167,6 +170,8 @@ namespace FirstPlugin emitterSets.Add(emitterSet); groupEmitterSets.Nodes.Add(emitterSet); } + foreach (var tex in Textures) + textureFolder.Nodes.Add(tex); } public void Write(FileWriter writer, PTCL ptcl) { @@ -336,7 +341,10 @@ namespace FirstPlugin textureInfo.Read(reader, header, Text); if (!textureInfo.IsEmpty()) + { DrawableTex.Add(textureInfo); + header.Textures.Add(textureInfo); + } } reader.Seek(pos + 1616, SeekOrigin.Begin); ColorPosition = reader.Position; diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll index 2aa74c51..89a94059 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll differ diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb index 5f186cd3..6b71b8ed 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb differ