mirror of
https://github.com/4sval/FModel.git
synced 2026-04-03 23:56:03 -05:00
minor changes
This commit is contained in:
parent
4be7d4c3fb
commit
158bf9d6c7
|
|
@ -232,7 +232,7 @@ public class CUE4ParseViewModel : ViewModel
|
|||
}
|
||||
if (!_fnLive.IsMatch(fileManifest.FileName)) continue;
|
||||
|
||||
p.RegisterVfs(fileManifest.FileName, [ fileManifest.GetStream(cacheChunksAsIs) ]
|
||||
p.RegisterVfs(fileManifest.FileName, [fileManifest.GetStream(cacheChunksAsIs)]
|
||||
, it => new FStreamArchive(it, manifest.FileManifestList.First(x => x.FileName.Equals(it)).GetStream(cacheChunksAsIs), p.Versions));
|
||||
}
|
||||
|
||||
|
|
@ -250,7 +250,7 @@ public class CUE4ParseViewModel : ViewModel
|
|||
|
||||
for (var i = 0; i < manifestInfo.Paks.Length; i++)
|
||||
{
|
||||
p.RegisterVfs(manifestInfo.Paks[i].GetFullName(), new[] { manifestInfo.GetPakStream(i) });
|
||||
p.RegisterVfs(manifestInfo.Paks[i].GetFullName(), [manifestInfo.GetPakStream(i)]);
|
||||
}
|
||||
|
||||
FLogger.Append(ELog.Information, () =>
|
||||
|
|
@ -261,9 +261,14 @@ public class CUE4ParseViewModel : ViewModel
|
|||
|
||||
break;
|
||||
case DefaultFileProvider:
|
||||
var ioStoreOnDemandPath = Path.Combine(UserSettings.Default.GameDirectory, "..\\..\\..\\Cloud\\IoStoreOnDemand.ini");
|
||||
if (File.Exists(ioStoreOnDemandPath)) IoStoreOnDemand.Read(new StringReader(File.ReadAllText(ioStoreOnDemandPath)));
|
||||
{
|
||||
var ioStoreOnDemandPath = Path.Combine(UserSettings.Default.GameDirectory,
|
||||
"..\\..\\..\\Cloud\\IoStoreOnDemand.ini");
|
||||
using var tr = File.OpenText(ioStoreOnDemandPath);
|
||||
if (File.Exists(ioStoreOnDemandPath))
|
||||
IoStoreOnDemand.Read(tr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Provider.Initialize();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user