mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: first proof of concept of reading
This commit is contained in:
1 parent
6f9336d067
commit
df93c986f9
4 files changed
+28
-27
No files matched your search
+23
-19
@@ -1,11 +1,6 @@
|
||||
using CLI.Constants;
|
||||
using CLI.Models;
|
||||
using CUE4Parse.FileProvider;
|
||||
using CUE4Parse.FileProvider.Objects;
|
||||
using CUE4Parse.UE4.Pak;
|
||||
using CUE4Parse.UE4.Readers;
|
||||
using CUE4Parse.UE4.Versions;
|
||||
using CUE4Parse.UE4.VirtualFileSystem;
|
||||
using UE4Config.Parsing;
|
||||
|
||||
namespace CLI.Functions
|
||||
{
|
||||
@@ -13,25 +8,34 @@ namespace CLI.Functions
|
||||
{
|
||||
public static void Run(Arguments args)
|
||||
{
|
||||
// string[] bundledContainers = Directory.GetFiles(Containers.BundledContainersDirectory);
|
||||
// DefaultFileProvider provider = new(
|
||||
// directory: new(BlitzConstants.AppDataDirectory),
|
||||
// searchOption: SearchOption.AllDirectories,
|
||||
// isCaseInsensitive: false,
|
||||
// extraDirectories: [new(BlitzConstants.InstallationDirectory)]
|
||||
// );
|
||||
|
||||
// foreach (string bundledContainer in bundledContainers)
|
||||
// provider.Initialize();
|
||||
|
||||
// Console.WriteLine("Mounted containers: " + provider.MountedVfs.Count);
|
||||
|
||||
// foreach (var file in provider.Files)
|
||||
// {
|
||||
// string fileName = Path.GetFileName(bundledContainer);
|
||||
|
||||
// Console.WriteLine($"Parsing bundled container \"{fileName}\"...");
|
||||
|
||||
// GameFile gameFile = file.Value;
|
||||
// Console.WriteLine(gameFile.Name);
|
||||
// }
|
||||
|
||||
|
||||
DefaultFileProvider provider = new(
|
||||
directory: ContainerConstants.DLCContainersDirectory,
|
||||
searchOption: SearchOption.TopDirectoryOnly,
|
||||
isCaseInsensitive: false,
|
||||
versions: new VersionContainer(BlitzConstants.EngineVersion)
|
||||
PakFileReader reader = new(
|
||||
"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest/Blitz/Content/Paks/pakchunk0-Windows.pak"
|
||||
);
|
||||
|
||||
provider.Initialize();
|
||||
reader.Mount();
|
||||
|
||||
foreach (var file in reader.Files)
|
||||
{
|
||||
GameFile gameFile = file.Value;
|
||||
// Console.WriteLine(gameFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user