Add project files.
This commit is contained in:
21
AssetStudio/Game/CB1/CB1File.cs
Normal file
21
AssetStudio/Game/CB1/CB1File.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace AssetStudio
|
||||
{
|
||||
public class CB1File
|
||||
{
|
||||
public Dictionary<long, StreamFile[]> Bundles = new Dictionary<long, StreamFile[]>();
|
||||
public CB1File(FileReader reader)
|
||||
{
|
||||
var data = Mark.Decrypt(reader);
|
||||
|
||||
using (var ms = new MemoryStream(data))
|
||||
using (var subReader = new FileReader(reader.FullPath, ms, reader.Game))
|
||||
{
|
||||
var bundle = new BundleFile(subReader);
|
||||
Bundles.Add(0, bundle.FileList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user