2025-01-25 12:04:48 -06:00
|
|
|
using CLI.Constants;
|
2025-01-23 21:43:54 -06:00
|
|
|
using CLI.Models;
|
2025-01-25 12:04:48 -06:00
|
|
|
using CUE4Parse.FileProvider;
|
|
|
|
|
using CUE4Parse.UE4.Pak;
|
|
|
|
|
using CUE4Parse.UE4.Readers;
|
|
|
|
|
using CUE4Parse.UE4.Versions;
|
|
|
|
|
using CUE4Parse.UE4.VirtualFileSystem;
|
|
|
|
|
using UE4Config.Parsing;
|
2025-01-23 21:43:54 -06:00
|
|
|
|
|
|
|
|
namespace CLI.Functions
|
|
|
|
|
{
|
|
|
|
|
class DLC
|
|
|
|
|
{
|
|
|
|
|
public static void Run(Arguments args)
|
|
|
|
|
{
|
2025-01-25 12:04:48 -06:00
|
|
|
// string[] bundledContainers = Directory.GetFiles(Containers.BundledContainersDirectory);
|
2025-01-23 21:43:54 -06:00
|
|
|
|
2025-01-25 12:04:48 -06:00
|
|
|
// foreach (string bundledContainer in bundledContainers)
|
|
|
|
|
// {
|
|
|
|
|
// string fileName = Path.GetFileName(bundledContainer);
|
2025-01-23 21:43:54 -06:00
|
|
|
|
2025-01-25 12:04:48 -06:00
|
|
|
// Console.WriteLine($"Parsing bundled container \"{fileName}\"...");
|
2025-01-23 21:43:54 -06:00
|
|
|
|
2025-01-25 12:04:48 -06:00
|
|
|
// }
|
2025-01-23 21:43:54 -06:00
|
|
|
|
2025-01-25 12:04:48 -06:00
|
|
|
|
|
|
|
|
DefaultFileProvider provider = new(
|
|
|
|
|
directory: ContainerConstants.DLCContainersDirectory,
|
|
|
|
|
searchOption: SearchOption.TopDirectoryOnly,
|
|
|
|
|
isCaseInsensitive: false,
|
|
|
|
|
versions: new VersionContainer(BlitzConstants.EngineVersion)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
provider.Initialize();
|
2025-01-23 21:43:54 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|