update module

This commit is contained in:
tresabhi committed 2026-05-23 13:18:09 -05:00
1 parent aa1f357538
commit 5e88f5a73d
5 files changed
+20 -9

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@
url = https://github.com/blitzkit/closed.git
[submodule "packages/cue4parse"]
path = packages/cue4parse
url = https://github.com/FabianFG/CUE4Parse.git
url = https://github.com/tresabhi/cue4parse.git
+16 -3
View File
@@ -1,6 +1,7 @@
using System.Text.RegularExpressions;
using BlitzKit.Game.Models;
using CUE4Parse_Conversion.Textures;
using CUE4Parse.Compression;
using CUE4Parse.UE4.Assets.Exports;
using CUE4Parse.UE4.Assets.Exports.Texture;
using CUE4Parse.UE4.Assets.Objects.Properties;
@@ -37,6 +38,10 @@ public partial class GameInterface
.Where(nation => !nation.EndsWith(".uasset") && nation != "TankStub")
.Distinct(),
];
string oodlePath = "temp/oodle.so";
OodleHelper.DownloadOodleDll(ref oodlePath);
OodleHelper.Initialize(oodlePath);
}
public HashSet<string> Files => files;
@@ -166,10 +171,18 @@ public partial class GameInterface
return [];
}
var bitmap = cTexture.ToSkBitmap();
var data = bitmap.Encode(SKEncodedImageFormat.Webp, 80);
try
{
var bitmap = cTexture.ToSkBitmap();
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
return data.ToArray();
// var data = bitmap.Encode(SKEncodedImageFormat.Webp, 80);
// return data.ToArray();
}
Console.WriteLine($"Could not load {path} as pda");
+2 -3
View File
@@ -2,7 +2,9 @@ using System.Runtime.InteropServices;
using CUE4Parse.Compression;
using CUE4Parse.FileProvider;
using CUE4Parse.MappingsProvider;
using CUE4Parse.UE4.Exceptions;
using CUE4Parse.UE4.Versions;
using CUE4Parse.Utils;
namespace BlitzKit.Game.Models;
@@ -20,8 +22,5 @@ public class BlitzFileProvider : DefaultFileProvider
Initialize();
Mount();
// OodleHelper.DownloadOodleDll($"../../temp/oodle.so");
// OodleHelper.Initialize($"../../temp/oodle.so");
}
}
-1
View File
@@ -2,7 +2,6 @@
<PropertyGroup>
<RootNamespace>BlitzKit.Game</RootNamespace>
<TargetFramework>net9.0</TargetFramework>
<!-- <RuntimeIdentifier>win-x64</RuntimeIdentifier> -->
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NodeApiAssemblyJSModuleType>esm</NodeApiAssemblyJSModuleType>