1
0
mirror of synced 2025-01-19 09:17:30 +01:00

Fix some errors

This commit is contained in:
KillzXGaming 2020-01-22 19:32:04 -05:00
parent a5d58aa268
commit e7197b7869
5 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,7 @@ using Toolbox.Library.Forms;
namespace FirstPlugin namespace FirstPlugin
{ {
public class BEA : IArchiveFile, IFileFormat public class BEA : TreeNodeFile, IArchiveFile, IFileFormat
{ {
public FileType FileType { get; set; } = FileType.Archive; public FileType FileType { get; set; } = FileType.Archive;

View File

@ -8,7 +8,7 @@ using Toolbox.Library;
using System.Windows.Forms; using System.Windows.Forms;
using System.IO; using System.IO;
namespace FirstPlugin.FileFormats.Archives.QuickAccess namespace FirstPlugin
{ {
public class QuickAccessFolder : TreeNodeCustom, IContextMenuNode public class QuickAccessFolder : TreeNodeCustom, IContextMenuNode
{ {

View File

@ -223,6 +223,8 @@
<Compile Include="FileFormats\Archives\DAT_Bayonetta.cs" /> <Compile Include="FileFormats\Archives\DAT_Bayonetta.cs" />
<Compile Include="FileFormats\Archives\GFA.cs" /> <Compile Include="FileFormats\Archives\GFA.cs" />
<Compile Include="FileFormats\Archives\LZS.cs" /> <Compile Include="FileFormats\Archives\LZS.cs" />
<Compile Include="FileFormats\Archives\QuickAccess\QuickAccessFile.cs" />
<Compile Include="FileFormats\Archives\QuickAccess\QuickAccessFolder.cs" />
<Compile Include="FileFormats\BCH\BCH.cs" /> <Compile Include="FileFormats\BCH\BCH.cs" />
<Compile Include="FileFormats\BCH\MBN.cs" /> <Compile Include="FileFormats\BCH\MBN.cs" />
<Compile Include="FileFormats\BCH\Wrappers\BCHGroupNode.cs" /> <Compile Include="FileFormats\BCH\Wrappers\BCHGroupNode.cs" />

View File

@ -161,7 +161,8 @@ namespace Toolbox.Library
} }
} }
public virtual string FileSize { get {return STMath.GetFileSize(FileData.Length, 4); } } public virtual string FileSize { get {return STMath.GetFileSize(
FileDataStream != null ? FileDataStream.Length : FileData.Length, 4); } }
[Browsable(false)] [Browsable(false)]
public IFileFormat FileFormat = null; //Format attached for saving public IFileFormat FileFormat = null; //Format attached for saving

View File

@ -195,6 +195,7 @@ namespace Toolbox.Library
return oldString; return oldString;
} }
public static T DeepCopy<T>(T other) public static T DeepCopy<T>(T other)
{ {
using (MemoryStream ms = new MemoryStream()) using (MemoryStream ms = new MemoryStream())