mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
featL include as submodule
This commit is contained in:
1 parent
82af101f9c
commit
6f9336d067
6 files changed
+50
-15
No files matched your search
+22
-12
@@ -1,4 +1,11 @@
|
||||
using CLI.Constants;
|
||||
using CLI.Models;
|
||||
using CUE4Parse.FileProvider;
|
||||
using CUE4Parse.UE4.Pak;
|
||||
using CUE4Parse.UE4.Readers;
|
||||
using CUE4Parse.UE4.Versions;
|
||||
using CUE4Parse.UE4.VirtualFileSystem;
|
||||
using UE4Config.Parsing;
|
||||
|
||||
namespace CLI.Functions
|
||||
{
|
||||
@@ -6,22 +13,25 @@ namespace CLI.Functions
|
||||
{
|
||||
public static void Run(Arguments args)
|
||||
{
|
||||
if (args.raw.Length < 2)
|
||||
{
|
||||
throw new ArgumentException("No directory provided");
|
||||
}
|
||||
// string[] bundledContainers = Directory.GetFiles(Containers.BundledContainersDirectory);
|
||||
|
||||
string dlcPaksDirectory = args.raw[1];
|
||||
// foreach (string bundledContainer in bundledContainers)
|
||||
// {
|
||||
// string fileName = Path.GetFileName(bundledContainer);
|
||||
|
||||
if (args.sanitize && Directory.Exists(dlcPaksDirectory))
|
||||
{
|
||||
Directory.Delete(dlcPaksDirectory, true);
|
||||
}
|
||||
// Console.WriteLine($"Parsing bundled container \"{fileName}\"...");
|
||||
|
||||
Directory.CreateDirectory(dlcPaksDirectory);
|
||||
// }
|
||||
|
||||
string testFilePath = Path.Combine(dlcPaksDirectory, "test.txt");
|
||||
File.WriteAllText(testFilePath, "test");
|
||||
|
||||
DefaultFileProvider provider = new(
|
||||
directory: ContainerConstants.DLCContainersDirectory,
|
||||
searchOption: SearchOption.TopDirectoryOnly,
|
||||
isCaseInsensitive: false,
|
||||
versions: new VersionContainer(BlitzConstants.EngineVersion)
|
||||
);
|
||||
|
||||
provider.Initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user