5555using CUE4Parse_Conversion . Sounds ;
5656using CUE4Parse . UE4 . Assets ;
5757using EpicManifestParser ;
58-
58+ using EpicManifestParser . ZlibngDotNetDecompressor ;
5959using FModel . Creator ;
6060using FModel . Extensions ;
6161using FModel . Framework ;
@@ -241,7 +241,8 @@ await _threadWorkerView.Begin(cancellationToken =>
241241 ChunkCacheDirectory = cacheDir ,
242242 ManifestCacheDirectory = cacheDir ,
243243 ChunkBaseUrl = "http://epicgames-download1.akamaized.net/Builds/Fortnite/CloudDir/" ,
244- Zlibng = ZlibHelper . Instance ,
244+ Decompressor = ManifestZlibngDotNetDecompressor . Decompress ,
245+ DecompressorState = ZlibHelper . Instance ,
245246 CacheChunksAsIs = false
246247 } ;
247248
@@ -252,7 +253,7 @@ await _threadWorkerView.Begin(cancellationToken =>
252253 ) . GetAwaiter ( ) . GetResult ( ) ;
253254 var parseTime = Stopwatch . GetElapsedTime ( startTs ) ;
254255
255- foreach ( var fileManifest in manifest . FileManifestList )
256+ foreach ( var fileManifest in manifest . Files )
256257 {
257258 if ( fileManifest . FileName . Equals ( "Cloud/IoStoreOnDemand.ini" , StringComparison . OrdinalIgnoreCase ) )
258259 {
@@ -265,8 +266,8 @@ await _threadWorkerView.Begin(cancellationToken =>
265266 continue ;
266267 }
267268
268- p . RegisterVfs ( fileManifest . FileName , [ ( IRandomAccessStream ) fileManifest . GetStream ( ) ]
269- , it => new FRandomAccessStreamArchive ( it , manifest . FileManifestList . First ( x => x . FileName . Equals ( it ) ) . GetStream ( ) , p . Versions ) ) ;
269+ p . RegisterVfs ( fileManifest . FileName , [ fileManifest . GetStream ( ) ]
270+ , it => new FRandomAccessStreamArchive ( it , manifest . Files . First ( x => x . FileName . Equals ( it ) ) . GetStream ( ) , p . Versions ) ) ;
270271 }
271272
272273 FLogger . Append ( ELog . Information , ( ) =>
@@ -283,7 +284,7 @@ await _threadWorkerView.Begin(cancellationToken =>
283284
284285 for ( var i = 0 ; i < manifestInfo . Paks . Length ; i ++ )
285286 {
286- p . RegisterVfs ( manifestInfo . Paks [ i ] . GetFullName ( ) , [ ( IRandomAccessStream ) manifestInfo . GetPakStream ( i ) ] ) ;
287+ p . RegisterVfs ( manifestInfo . Paks [ i ] . GetFullName ( ) , [ manifestInfo . GetPakStream ( i ) ] ) ;
287288 }
288289
289290 FLogger . Append ( ELog . Information , ( ) =>
0 commit comments