mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +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
@@ -1,3 +1,6 @@
|
||||
[submodule "submodules/blitzkit-closed"]
|
||||
path = submodules/blitzkit-closed
|
||||
url = https://github.com/tresabhi/blitzkit-closed
|
||||
[submodule "submodules/CUE4Parse"]
|
||||
path = submodules/CUE4Parse
|
||||
url = https://github.com/FabianFG/CUE4Parse
|
||||
Vendored
+1
@@ -183,6 +183,7 @@
|
||||
"tresabhi",
|
||||
"tungstentip",
|
||||
"TYPELESS",
|
||||
"uasset",
|
||||
"ubjson",
|
||||
"Unicum",
|
||||
"UNLOCALIZED",
|
||||
|
||||
+1
-3
@@ -1,5 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
@@ -8,7 +7,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CUE4Parse" Version="1.1.1" />
|
||||
<ProjectReference Include="../../submodules/CUE4Parse/CUE4Parse/CUE4Parse.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
+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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using CUE4Parse.UE4.Versions;
|
||||
|
||||
namespace CLI.Constants
|
||||
{
|
||||
public static class ContainerConstants
|
||||
{
|
||||
public const string ContentGroup = "p14y73c7_p5e_b10gg3RS_big_play";
|
||||
|
||||
// public const string BundledPaksDirectory = "./temp/blitz/Blitz/Content/Paks";
|
||||
public const string BundledContainersDirectory =
|
||||
"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest/Blitz/Content/Paks";
|
||||
|
||||
// public const string DLCContainersDirectory = "./temp/unpacked";
|
||||
public const string DLCContainersDirectory =
|
||||
"C:/Users/coola/AppData/Local/Blitz/Saved/PersistentDownloadDir/Dlc/PakCache";
|
||||
}
|
||||
|
||||
public static class BlitzConstants
|
||||
{
|
||||
public const EGame EngineVersion = EGame.GAME_UE5_3;
|
||||
}
|
||||
}
|
||||
Submodule
+1
Submodule submodules/CUE4Parse added at c8e362516a.
Reference in new issue
Block a user