mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: oh my lord i did it
This commit is contained in:
1 parent
1714028e83
commit
9546bf5bb7
4 files changed
+35
-21
No files matched your search
+1
-1
@@ -38,7 +38,7 @@
|
|||||||
"build:ids": "cd packages/scripts && bun build:ids",
|
"build:ids": "cd packages/scripts && bun build:ids",
|
||||||
"prunestrings": "cd packages/scripts && bun prunestrings",
|
"prunestrings": "cd packages/scripts && bun prunestrings",
|
||||||
"dev:cli:unpack": "cd src/CLI && dotnet run unpack \"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest\" --no-overwrite",
|
"dev:cli:unpack": "cd src/CLI && dotnet run unpack \"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest\" --no-overwrite",
|
||||||
"dev:cli:test": "cd src/CLI && dotnet run test"
|
"dev:cli:buildassets": "cd src/CLI && dotnet run buildassets"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
using CUE4Parse.FileProvider;
|
||||||
|
using CUE4Parse.FileProvider.Objects;
|
||||||
|
|
||||||
|
namespace CLI.Functions
|
||||||
|
{
|
||||||
|
public static class AssetsBuilder
|
||||||
|
{
|
||||||
|
private static readonly string LOCAL_USER = "coola";
|
||||||
|
private static readonly string LOCAL_DLC_CONTAINERS_PATH =
|
||||||
|
$"C:/Users/{LOCAL_USER}/AppData/Local/Blitz/Saved/PersistentDownloadDir/Dlc/PakCache";
|
||||||
|
private static readonly string LOCAL_BUNDLED_CONTAINERS_PATH =
|
||||||
|
"C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz Playtest/Blitz/Content/Paks";
|
||||||
|
|
||||||
|
public static void Build(string[] args)
|
||||||
|
{
|
||||||
|
DefaultFileProvider provider = new(
|
||||||
|
directory: new DirectoryInfo(LOCAL_DLC_CONTAINERS_PATH),
|
||||||
|
extraDirectories: [new(LOCAL_BUNDLED_CONTAINERS_PATH)],
|
||||||
|
searchOption: SearchOption.TopDirectoryOnly
|
||||||
|
);
|
||||||
|
|
||||||
|
provider.Initialize();
|
||||||
|
provider.Mount();
|
||||||
|
|
||||||
|
foreach (var file in provider.Files)
|
||||||
|
{
|
||||||
|
GameFile gameFile = file.Value;
|
||||||
|
Console.WriteLine(gameFile.Path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
using DotNet.Globbing;
|
|
||||||
|
|
||||||
namespace CLI.Functions
|
|
||||||
{
|
|
||||||
public static class Debug
|
|
||||||
{
|
|
||||||
public static void Run(string[] args)
|
|
||||||
{
|
|
||||||
var glob = Glob.Parse("Blitz/Content/Tanks/**");
|
|
||||||
|
|
||||||
Console.WriteLine(
|
|
||||||
glob.IsMatch(
|
|
||||||
"Blitz/Content/Tanks/China/Ch01_Type59/Attachments/ATC_Ch01_Type59_hull.uasset"
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+2
-2
@@ -20,9 +20,9 @@ namespace CLI
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case "test":
|
case "buildassets":
|
||||||
{
|
{
|
||||||
Debug.Run(args);
|
AssetsBuilder.Build(args);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user