mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-29 05:29:52 +01: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"]
|
[submodule "submodules/blitzkit-closed"]
|
||||||
path = submodules/blitzkit-closed
|
path = submodules/blitzkit-closed
|
||||||
url = https://github.com/tresabhi/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",
|
"tresabhi",
|
||||||
"tungstentip",
|
"tungstentip",
|
||||||
"TYPELESS",
|
"TYPELESS",
|
||||||
|
"uasset",
|
||||||
"ubjson",
|
"ubjson",
|
||||||
"Unicum",
|
"Unicum",
|
||||||
"UNLOCALIZED",
|
"UNLOCALIZED",
|
||||||
|
|||||||
+1
-3
@@ -1,5 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
@@ -8,7 +7,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CUE4Parse" Version="1.1.1" />
|
<ProjectReference Include="../../submodules/CUE4Parse/CUE4Parse/CUE4Parse.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
+22
-12
@@ -1,4 +1,11 @@
|
|||||||
|
using CLI.Constants;
|
||||||
using CLI.Models;
|
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
|
namespace CLI.Functions
|
||||||
{
|
{
|
||||||
@@ -6,22 +13,25 @@ namespace CLI.Functions
|
|||||||
{
|
{
|
||||||
public static void Run(Arguments args)
|
public static void Run(Arguments args)
|
||||||
{
|
{
|
||||||
if (args.raw.Length < 2)
|
// string[] bundledContainers = Directory.GetFiles(Containers.BundledContainersDirectory);
|
||||||
{
|
|
||||||
throw new ArgumentException("No directory provided");
|
|
||||||
}
|
|
||||||
|
|
||||||
string dlcPaksDirectory = args.raw[1];
|
// foreach (string bundledContainer in bundledContainers)
|
||||||
|
// {
|
||||||
|
// string fileName = Path.GetFileName(bundledContainer);
|
||||||
|
|
||||||
if (args.sanitize && Directory.Exists(dlcPaksDirectory))
|
// Console.WriteLine($"Parsing bundled container \"{fileName}\"...");
|
||||||
{
|
|
||||||
Directory.Delete(dlcPaksDirectory, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
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