mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
update module
This commit is contained in:
1 parent
aa1f357538
commit
5e88f5a73d
5 files changed
+20
-9
No files matched your search
+1
-1
@@ -3,4 +3,4 @@
|
|||||||
url = https://github.com/blitzkit/closed.git
|
url = https://github.com/blitzkit/closed.git
|
||||||
[submodule "packages/cue4parse"]
|
[submodule "packages/cue4parse"]
|
||||||
path = packages/cue4parse
|
path = packages/cue4parse
|
||||||
url = https://github.com/FabianFG/CUE4Parse.git
|
url = https://github.com/tresabhi/cue4parse.git
|
||||||
+1
-1
Submodule packages/cue4parse updated: b8c9dab500...ecc4878950.
@@ -1,6 +1,7 @@
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using BlitzKit.Game.Models;
|
using BlitzKit.Game.Models;
|
||||||
using CUE4Parse_Conversion.Textures;
|
using CUE4Parse_Conversion.Textures;
|
||||||
|
using CUE4Parse.Compression;
|
||||||
using CUE4Parse.UE4.Assets.Exports;
|
using CUE4Parse.UE4.Assets.Exports;
|
||||||
using CUE4Parse.UE4.Assets.Exports.Texture;
|
using CUE4Parse.UE4.Assets.Exports.Texture;
|
||||||
using CUE4Parse.UE4.Assets.Objects.Properties;
|
using CUE4Parse.UE4.Assets.Objects.Properties;
|
||||||
@@ -37,6 +38,10 @@ public partial class GameInterface
|
|||||||
.Where(nation => !nation.EndsWith(".uasset") && nation != "TankStub")
|
.Where(nation => !nation.EndsWith(".uasset") && nation != "TankStub")
|
||||||
.Distinct(),
|
.Distinct(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
string oodlePath = "temp/oodle.so";
|
||||||
|
OodleHelper.DownloadOodleDll(ref oodlePath);
|
||||||
|
OodleHelper.Initialize(oodlePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashSet<string> Files => files;
|
public HashSet<string> Files => files;
|
||||||
@@ -166,10 +171,18 @@ public partial class GameInterface
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
var bitmap = cTexture.ToSkBitmap();
|
try
|
||||||
var data = bitmap.Encode(SKEncodedImageFormat.Webp, 80);
|
{
|
||||||
|
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");
|
Console.WriteLine($"Could not load {path} as pda");
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ using System.Runtime.InteropServices;
|
|||||||
using CUE4Parse.Compression;
|
using CUE4Parse.Compression;
|
||||||
using CUE4Parse.FileProvider;
|
using CUE4Parse.FileProvider;
|
||||||
using CUE4Parse.MappingsProvider;
|
using CUE4Parse.MappingsProvider;
|
||||||
|
using CUE4Parse.UE4.Exceptions;
|
||||||
using CUE4Parse.UE4.Versions;
|
using CUE4Parse.UE4.Versions;
|
||||||
|
using CUE4Parse.Utils;
|
||||||
|
|
||||||
namespace BlitzKit.Game.Models;
|
namespace BlitzKit.Game.Models;
|
||||||
|
|
||||||
@@ -20,8 +22,5 @@ public class BlitzFileProvider : DefaultFileProvider
|
|||||||
|
|
||||||
Initialize();
|
Initialize();
|
||||||
Mount();
|
Mount();
|
||||||
|
|
||||||
// OodleHelper.DownloadOodleDll($"../../temp/oodle.so");
|
|
||||||
// OodleHelper.Initialize($"../../temp/oodle.so");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RootNamespace>BlitzKit.Game</RootNamespace>
|
<RootNamespace>BlitzKit.Game</RootNamespace>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<!-- <RuntimeIdentifier>win-x64</RuntimeIdentifier> -->
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<NodeApiAssemblyJSModuleType>esm</NodeApiAssemblyJSModuleType>
|
<NodeApiAssemblyJSModuleType>esm</NodeApiAssemblyJSModuleType>
|
||||||
|
|||||||
Reference in new issue
Block a user