1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix chr0 issues

This commit is contained in:
KillzXGaming 2019-08-28 16:21:37 -04:00
parent 3eb8052e46
commit 777ba269bc
5 changed files with 12 additions and 22 deletions

View File

@ -274,8 +274,10 @@ namespace BrawlboxHelper
public static void Fska2Chr0(SkeletalAnim fska, string FileName)
{
Console.WriteLine("Making CHR0Node");
CHR0Node chr0 = new CHR0Node();
Console.WriteLine("Created CHR0Node");
chr0.FrameCount = fska.FrameCount;
chr0.Name = fska.Name;
chr0.OriginalPath = fska.Path;
@ -285,6 +287,8 @@ namespace BrawlboxHelper
foreach (var entry in fska.BoneAnims)
BoneAnim2Chr0Entry(entry, chr0);
Console.WriteLine("Exporting CHR0Node");
chr0.Export(FileName);
}

View File

@ -18,7 +18,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Toolbox\bin\Debug\Lib\</OutputPath>
<OutputPath>.\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@ -40,14 +40,6 @@
<HintPath>..\Toolbox\Gl_EditorFramework.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="OpenTK, Version=3.0.1.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Toolbox\Lib\OpenTK.dll</HintPath>
</Reference>
<Reference Include="OpenTK.GLControl, Version=3.0.1.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Toolbox\Lib\OpenTK.GLControl.dll</HintPath>
</Reference>
<Reference Include="Syroot.BinaryData">
<HintPath>..\Toolbox\Lib\Syroot.BinaryData.dll</HintPath>
<Private>False</Private>
@ -56,9 +48,9 @@
<HintPath>..\Toolbox\Lib\Syroot.Maths.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Syroot.NintenTools.Bfres">
<Reference Include="Syroot.NintenTools.Bfres, Version=1.2.3.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Toolbox\Lib\Syroot.NintenTools.Bfres.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Syroot.NintenTools.NSW.Bfres, Version=1.2.3.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
@ -79,13 +71,11 @@
<Compile Include="BrawlHelper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Switch_Toolbox_Library\Toolbox_Library.csproj">
<Project>{96820047-2a39-4e5a-bfa4-e84fff5c66cf}</Project>
<Name>Toolbox_Library</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Binary file not shown.

Binary file not shown.

View File

@ -15,7 +15,6 @@ using System.ComponentModel;
namespace FirstPlugin
{
public class NSP : IArchiveFile, IFileFormat, ILeaveOpenOnLoad
{
public FileType FileType { get; set; } = FileType.Rom;
@ -115,15 +114,12 @@ namespace FirstPlugin
public override object DisplayProperties => this;
public override string FileSize => STMath.GetFileSize(File.DataLength, 4);
[Browsable(false)]
public override byte[] FileData
public override Stream FileDataStream
{
get
{
var mem = new MemoryStream();
ParentROMFS.OpenFile(File).CopyToStream(mem);
return mem.ToArray();
return ParentROMFS.OpenFile(File).AsStream();
}
}