mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: exporting
This commit is contained in:
1 parent
d4f11fc52a
commit
99f41b9805
4 files changed
+35
-96
No files matched your search
@@ -1,3 +1,5 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using CUE4Parse.Compression;
|
||||
using CUE4Parse.FileProvider;
|
||||
using CUE4Parse.MappingsProvider;
|
||||
using CUE4Parse.UE4.Versions;
|
||||
@@ -15,5 +17,25 @@ public class BlitzFileProvider : DefaultFileProvider
|
||||
)
|
||||
{
|
||||
MappingsContainer = new FileUsmapTypeMappingsProvider("../../packages/closed/blitz.usmap");
|
||||
|
||||
Initialize();
|
||||
Mount();
|
||||
|
||||
string libraryExtension;
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
libraryExtension = "dll";
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
libraryExtension = "so";
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("Unsupported OS");
|
||||
}
|
||||
|
||||
OodleHelper.DownloadOodleDll($"../../temp/oodle.{libraryExtension}");
|
||||
OodleHelper.Initialize($"../../temp/oodle.{libraryExtension}");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user