mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
feat: vfs
This commit is contained in:
1 parent
df93c986f9
commit
4afc413d8b
3 files changed
+69
-28
No files matched your search
+10
-24
@@ -1,6 +1,5 @@
|
||||
using CLI.Models;
|
||||
using CUE4Parse.FileProvider.Objects;
|
||||
using CUE4Parse.UE4.Pak;
|
||||
using CLI.Utils;
|
||||
|
||||
namespace CLI.Functions
|
||||
{
|
||||
@@ -8,34 +7,21 @@ namespace CLI.Functions
|
||||
{
|
||||
public static void Run(Arguments args)
|
||||
{
|
||||
// DefaultFileProvider provider = new(
|
||||
// directory: new(BlitzConstants.AppDataDirectory),
|
||||
// searchOption: SearchOption.AllDirectories,
|
||||
// isCaseInsensitive: false,
|
||||
// extraDirectories: [new(BlitzConstants.InstallationDirectory)]
|
||||
BlitzVfs vfs = new();
|
||||
|
||||
vfs.Initialize();
|
||||
|
||||
// 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();
|
||||
|
||||
// Console.WriteLine("Mounted containers: " + provider.MountedVfs.Count);
|
||||
|
||||
// foreach (var file in provider.Files)
|
||||
// foreach (var file in reader.Files)
|
||||
// {
|
||||
// GameFile gameFile = file.Value;
|
||||
// Console.WriteLine(gameFile.Name);
|
||||
// Console.WriteLine(gameFile);
|
||||
// }
|
||||
|
||||
PakFileReader reader = new(
|
||||
"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest/Blitz/Content/Paks/pakchunk0-Windows.pak"
|
||||
);
|
||||
|
||||
reader.Mount();
|
||||
|
||||
foreach (var file in reader.Files)
|
||||
{
|
||||
GameFile gameFile = file.Value;
|
||||
// Console.WriteLine(gameFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user