2026-02-02 19:04:54 -06:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using CUE4Parse.Compression;
|
2026-02-02 18:07:20 -06:00
|
|
|
using CUE4Parse.FileProvider;
|
2026-02-02 17:08:37 -06:00
|
|
|
using CUE4Parse.MappingsProvider;
|
|
|
|
|
using CUE4Parse.UE4.Versions;
|
|
|
|
|
|
2026-02-02 17:28:24 -06:00
|
|
|
namespace BlitzKit.Game.Models;
|
2026-02-02 17:08:37 -06:00
|
|
|
|
2026-02-02 18:07:20 -06:00
|
|
|
public class BlitzFileProvider : DefaultFileProvider
|
2026-02-02 17:08:37 -06:00
|
|
|
{
|
|
|
|
|
public BlitzFileProvider(string directory)
|
|
|
|
|
: base(
|
|
|
|
|
directory: directory,
|
|
|
|
|
searchOption: SearchOption.AllDirectories,
|
|
|
|
|
versions: new(EGame.GAME_UE5_5),
|
|
|
|
|
pathComparer: StringComparer.OrdinalIgnoreCase
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
MappingsContainer = new FileUsmapTypeMappingsProvider("../../packages/closed/blitz.usmap");
|
2026-02-02 19:04:54 -06:00
|
|
|
|
|
|
|
|
Initialize();
|
|
|
|
|
Mount();
|
|
|
|
|
|
2026-05-05 16:48:16 -05:00
|
|
|
// OodleHelper.DownloadOodleDll($"../../temp/oodle.so");
|
|
|
|
|
OodleHelper.Initialize($"../../temp/oodle.so");
|
2026-02-02 17:08:37 -06:00
|
|
|
}
|
|
|
|
|
}
|