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;
|
2026-05-23 13:18:09 -05:00
|
|
|
using CUE4Parse.UE4.Exceptions;
|
2026-02-02 17:08:37 -06:00
|
|
|
using CUE4Parse.UE4.Versions;
|
2026-05-23 13:18:09 -05:00
|
|
|
using CUE4Parse.Utils;
|
2026-02-02 17:08:37 -06:00
|
|
|
|
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
|
|
|
{
|
2026-05-22 13:51:30 -05:00
|
|
|
public BlitzFileProvider(string directory, string map)
|
2026-02-02 17:08:37 -06:00
|
|
|
: base(
|
|
|
|
|
directory: directory,
|
|
|
|
|
searchOption: SearchOption.AllDirectories,
|
|
|
|
|
versions: new(EGame.GAME_UE5_5),
|
|
|
|
|
pathComparer: StringComparer.OrdinalIgnoreCase
|
|
|
|
|
)
|
|
|
|
|
{
|
2026-05-22 13:51:30 -05:00
|
|
|
MappingsContainer = new FileUsmapTypeMappingsProvider(map);
|
2026-02-02 19:04:54 -06:00
|
|
|
|
|
|
|
|
Initialize();
|
|
|
|
|
Mount();
|
2026-02-02 17:08:37 -06:00
|
|
|
}
|
|
|
|
|
}
|