feat: some unpacking

This commit is contained in:
tresabhi committed 2025-02-25 17:55:05 -06:00
1 parent 8c7f851692
commit af0b430927
6 files changed
+28 -18

No files matched your search

+3 -2
View File
@@ -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);
+1 -1
View File
@@ -12,7 +12,7 @@ namespace BlitzKit.CLI.Functions
public static class Unpacker
{
private const string CONTENT_GROUP = "p14y73c7_p5e_b10gg3RS_big_play";
private const string VFS_PATH = "../../temp/vfs/";
private const string VFS_PATH = "../../temp/containers/";
// this may be different from the one provided in args so check this and not args[1]
// we don't wanna delete my local installation of the game when debugging haha!