mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: some unpacking
This commit is contained in:
1 parent
8c7f851692
commit
af0b430927
6 files changed
+28
-18
No files matched your search
@@ -11,10 +11,10 @@ using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BlitzKit.CLI.Functions
|
||||
{
|
||||
public class Mangler
|
||||
public class Mangler(string[] args)
|
||||
{
|
||||
readonly Tanks tanks = new();
|
||||
readonly BlitzProvider provider = new();
|
||||
readonly BlitzProvider provider = new(args.Contains("--depot"));
|
||||
readonly List<FileChange> changes = [];
|
||||
|
||||
public async Task Mangle()
|
||||
@@ -54,6 +54,7 @@ namespace BlitzKit.CLI.Functions
|
||||
var pda = provider.LoadObject($"{tankDir.Path}/{pdaName}.{pdaName}");
|
||||
|
||||
var tankId = PropertyUtil.Get<FName>(pda, "TankId").Text;
|
||||
Console.WriteLine($"Mangling {tankId}...");
|
||||
|
||||
var hulls = PropertyUtil.Get<UDataTable>(pda, "DT_Hulls");
|
||||
UDataTableUtility.TryGetDataTableRow(hulls, "hull", StringComparison.Ordinal, out var hull);
|
||||
|
||||
Reference in new issue
Block a user