workaround for exporting tranm (#555)

This commit is contained in:
Teras 2022-12-08 17:25:30 +01:00 committed by GitHub
parent 022fcc61cc
commit eaef6e5f0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 1 deletions

View file

@ -144,7 +144,7 @@ namespace FirstPlugin
if (folderName == "Models") if (folderName == "Models")
folder = new GFPAK.QuickAccessFileFolder("Models"); folder = new GFPAK.QuickAccessFileFolder("Models");
if (folderName == "Animations") if (folderName == "Animations")
folder = new GFPAK.QuickAccessFileFolder("Animations"); folder = new GFPAK.AnimationFolder("Animations");
node.Nodes.Add(folder); node.Nodes.Add(folder);
folders.Add(folderName, folder); folders.Add(folderName, folder);

View file

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Toolbox.Library;
using Toolbox.Library.Animations;
namespace FirstPlugin
{
internal class TRANM : GFBANM, IFileFormat, IAnimationContainer, IConvertableTextFormat
{
public new bool Identify(System.IO.Stream stream)
{
return Utils.GetExtension(FileName) == ".tranm";
}
}
}

View file

@ -485,6 +485,7 @@
<Compile Include="FileFormats\Pokemon\GFLX\GFBMDL\GFMDLStructs.cs" /> <Compile Include="FileFormats\Pokemon\GFLX\GFBMDL\GFMDLStructs.cs" />
<Compile Include="FileFormats\Pokemon\GFLX\GFBPMCATALOG\FlatBuffers\gfbpmcatalog.cs" /> <Compile Include="FileFormats\Pokemon\GFLX\GFBPMCATALOG\FlatBuffers\gfbpmcatalog.cs" />
<Compile Include="FileFormats\Pokemon\GFLX\PokemonTable.cs" /> <Compile Include="FileFormats\Pokemon\GFLX\PokemonTable.cs" />
<Compile Include="FileFormats\Pokemon\Trinity\TRANM\TRANM.cs" />
<Compile Include="FileFormats\Rom\3DS\NCSDStructs.cs" /> <Compile Include="FileFormats\Rom\3DS\NCSDStructs.cs" />
<Compile Include="FileFormats\Rom\3DS\NCSD.cs" /> <Compile Include="FileFormats\Rom\3DS\NCSD.cs" />
<Compile Include="FileFormats\Rom\3DS\RomFS.cs" /> <Compile Include="FileFormats\Rom\3DS\RomFS.cs" />

View file

@ -461,6 +461,7 @@ namespace FirstPlugin
Formats.Add(typeof(MTXT)); Formats.Add(typeof(MTXT));
Formats.Add(typeof(NKN)); Formats.Add(typeof(NKN));
Formats.Add(typeof(MetroidDreadLibrary.BSMAT)); Formats.Add(typeof(MetroidDreadLibrary.BSMAT));
Formats.Add(typeof(TRANM));
//Formats.Add(typeof(XLINK_FILE)); //Formats.Add(typeof(XLINK_FILE));