mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: blitz provider
This commit is contained in:
1 parent
c1f765d5f7
commit
dba56f8946
6 files changed
+32
-15
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using CUE4Parse.FileProvider;
|
||||
using CUE4Parse.UE4.Versions;
|
||||
using Microsoft.JavaScript.NodeApi;
|
||||
|
||||
namespace game.src.classes;
|
||||
|
||||
[JSExport]
|
||||
public class BlitzProvider
|
||||
{
|
||||
private readonly DefaultFileProvider provider;
|
||||
|
||||
public BlitzProvider(string directory)
|
||||
{
|
||||
provider = new(
|
||||
directory: directory,
|
||||
searchOption: SearchOption.AllDirectories,
|
||||
versions: new(EGame.GAME_UE5_5),
|
||||
pathComparer: StringComparer.OrdinalIgnoreCase
|
||||
);
|
||||
provider.Initialize();
|
||||
provider.Mount();
|
||||
}
|
||||
|
||||
public string[] Files()
|
||||
{
|
||||
return provider.Files.Keys.ToArray();
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1 @@
|
||||
console.log("that's crazy yo");
|
||||
|
||||
export * from "../bin/Debug/net9.0/game";
|
||||
Reference in new issue
Block a user