1
0
mirror of synced 2024-12-03 19:47:29 +01:00

Make sure to use the right sarc code

This commit is contained in:
KillzXGaming 2019-06-26 13:26:12 -04:00
parent 27d4b670d8
commit cec9928991
7 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -9,7 +9,7 @@ using Switch_Toolbox.Library;
using Switch_Toolbox.Library.IO;
using Switch_Toolbox.Library.Forms;
namespace FirstPlugin
namespace FirstPlugin.New
{
public class SARC : IArchiveFile, IFileFormat
{

View File

@ -9,7 +9,7 @@ using Switch_Toolbox.Library;
using Switch_Toolbox.Library.IO;
using Switch_Toolbox.Library.Forms;
namespace FirstPlugin.Old
namespace FirstPlugin
{
public class SARC : TreeNodeFile, IFileFormat
{

View File

@ -220,7 +220,7 @@ namespace FirstPlugin
{
foreach (var file in ((SARC)FileFormat).Files)
{
var archiveFile = STFileLoader.OpenFileFormat(file.FileName, new Type[] { typeof(BFLIM) , typeof(SARC) }, file.FileData);
var archiveFile = STFileLoader.OpenFileFormat(file.FullName, new Type[] { typeof(BFLIM) , typeof(SARC) }, file.Data);
if (archiveFile == null)
continue;

View File

@ -213,10 +213,10 @@ namespace FirstPlugin
{
foreach (var file in ((SARC)FileFormat).Files)
{
string ext = System.IO.Path.GetExtension(file.FileName);
string ext = System.IO.Path.GetExtension(file.FullName);
if (ext == ".bfres")
{
bfresFiles.Add((BFRES)STFileLoader.OpenFileFormat(file.FileName, file.FileData));
bfresFiles.Add((BFRES)STFileLoader.OpenFileFormat(file.FullName, file.Data));
}
}
}