Make sure to use the right sarc code
This commit is contained in:
parent
27d4b670d8
commit
cec9928991
Binary file not shown.
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user