Fix chr0 issues
This commit is contained in:
parent
3eb8052e46
commit
777ba269bc
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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" />
|
||||
|
BIN
BrawlboxHelper/BrawlboxHelper.dll
Normal file
BIN
BrawlboxHelper/BrawlboxHelper.dll
Normal file
Binary file not shown.
BIN
BrawlboxHelper/BrawlboxHelper.pdb
Normal file
BIN
BrawlboxHelper/BrawlboxHelper.pdb
Normal file
Binary file not shown.
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user