1
This commit is contained in:
@@ -16,10 +16,15 @@ namespace BITKit.IO
|
||||
public DateTime LastModifiedTime;
|
||||
|
||||
// ReSharper disable once CollectionNeverQueried.Global
|
||||
public readonly List<string> Files = new List<string>();
|
||||
// ReSharper disable once FieldCanBeMadeReadOnly.Global
|
||||
public List<string> Files = new List<string>();
|
||||
}
|
||||
public class BITAssets : List<IAsset>
|
||||
{
|
||||
public static BITHeader ReadHeader(string path)
|
||||
{
|
||||
return Read<BITHeader>(path,"manifest.json");
|
||||
}
|
||||
public static void Build(string path, params IAsset[] assets)
|
||||
{
|
||||
List<IAsset> assetList = new();
|
||||
@@ -54,6 +59,7 @@ namespace BITKit.IO
|
||||
using var ms = new MemoryStream(x.Buffer);
|
||||
using var writer = entry.Open();
|
||||
ms.CopyTo(writer);
|
||||
writer.Flush();
|
||||
}
|
||||
|
||||
zipFile.Dispose();
|
||||
|
Reference in New Issue
Block a user