Пример #1
0
 protected GameFile(string path, long size, EGame game, UE4Version ver)
 {
     Path = path;
     Size = size;
     Ver  = ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver;
     Game = game;
 }
Пример #2
0
 protected AbstractVfsReader(string path, EGame game, UE4Version ver)
 {
     Path  = path;
     Name  = path.Replace('\\', '/').SubstringAfterLast('/');
     Ver   = ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver;
     Game  = game;
     Files = new Dictionary <string, GameFile>();
 }
Пример #3
0
        }                                      // fabian? is this reversed?

        protected AbstractFileProvider(
            bool isCaseInsensitive = false,
            EGame game             = EGame.GAME_UE4_LATEST,
            UE4Version ver         = UE4Version.VER_UE4_DETERMINE_BY_GAME)
        {
            IsCaseInsensitive = isCaseInsensitive;
            Game = game;
            Ver  = ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver;
        }
Пример #4
0
 protected FArchive(EGame game = EGame.GAME_UE4_LATEST, UE4Version ver = UE4Version.VER_UE4_DETERMINE_BY_GAME)
 {
     Game = game;
     Ver  = ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver;
 }
Пример #5
0
 public IoStoreReader(string tocPath, Stream tocStream, Stream casStream, EIoStoreTocReadOptions readOptions = EIoStoreTocReadOptions.ReadDirectoryIndex,
                      EGame game = EGame.GAME_UE4_LATEST, UE4Version ver = UE4Version.VER_UE4_DETERMINE_BY_GAME)
     : this(new FStreamArchive(tocPath, tocStream, game, ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver),
            it => new FStreamArchive(it, casStream, game, ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver), readOptions)
 {
 }
Пример #6
0
 public IoStoreReader(FileInfo utocFile, EIoStoreTocReadOptions readOptions = EIoStoreTocReadOptions.ReadDirectoryIndex,
                      EGame game = EGame.GAME_UE4_LATEST, UE4Version ver = UE4Version.VER_UE4_DETERMINE_BY_GAME)
     : this(new FByteArchive(utocFile.FullName, File.ReadAllBytes(utocFile.FullName),
                             game, ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver),
            it => new FStreamArchive(it, File.Open(it, FileMode.Open, FileAccess.Read, FileShare.ReadWrite),
                                     game, ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver), readOptions)
 {
 }
Пример #7
0
 public PakFileReader(string filePath, Stream stream, EGame game = EGame.GAME_UE4_LATEST, UE4Version ver = UE4Version.VER_UE4_DETERMINE_BY_GAME)
     : this(new FStreamArchive(filePath, stream, game, ver == UE4Version.VER_UE4_DETERMINE_BY_GAME ? game.GetVersion() : ver))
 {
 }