1
0
mirror of synced 2024-09-24 03:28:21 +02:00

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")
folder = new GFPAK.QuickAccessFileFolder("Models");
if (folderName == "Animations")
folder = new GFPAK.QuickAccessFileFolder("Animations");
folder = new GFPAK.AnimationFolder("Animations");
node.Nodes.Add(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\GFBPMCATALOG\FlatBuffers\gfbpmcatalog.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\NCSD.cs" />
<Compile Include="FileFormats\Rom\3DS\RomFS.cs" />

View File

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