Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
workaround for exporting tranm (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terasol committed Dec 8, 2022
1 parent 022fcc6 commit eaef6e5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion File_Format_Library/FileFormats/Archives/TRPAK/TRPAK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void Load(Stream stream)
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);
Expand Down
18 changes: 18 additions & 0 deletions File_Format_Library/FileFormats/Pokemon/Trinity/TRANM/TRANM.cs
Original file line number Diff line number Diff line change
@@ -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";
}
}
}
1 change: 1 addition & 0 deletions File_Format_Library/File_Format_Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
1 change: 1 addition & 0 deletions File_Format_Library/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ private Type[] LoadFileFormats()
Formats.Add(typeof(MTXT));
Formats.Add(typeof(NKN));
Formats.Add(typeof(MetroidDreadLibrary.BSMAT));
Formats.Add(typeof(TRANM));

//Formats.Add(typeof(XLINK_FILE));

Expand Down

0 comments on commit eaef6e5

Please sign in to comment.