Skip to content

Commit f51ad82

Browse files
committed
Show CompressionMethods in Archives Info
1 parent 1846b82 commit f51ad82

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

FModel/ViewModels/AudioPlayerViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ private bool ConvertIfNeeded()
566566

567567
switch (SelectedAudioFile.Extension)
568568
{
569+
case "binka":
569570
case "adpcm":
570571
case "xvag":
571572
case "opus":
@@ -586,7 +587,6 @@ private bool ConvertIfNeeded()
586587
case "hca":
587588
return TryConvertCriware();
588589
case "rada":
589-
case "binka":
590590
{
591591
if (TryDecode(SelectedAudioFile.Extension, out var rawFilePath))
592592
{

FModel/ViewModels/GameDirectoryViewModel.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text.RegularExpressions;
66
using System.Windows;
77
using System.Windows.Data;
8+
using CUE4Parse.Compression;
89
using CUE4Parse.UE4.IO;
910
using CUE4Parse.UE4.Objects.Core.Misc;
1011
using CUE4Parse.UE4.VirtualFileSystem;
@@ -69,6 +70,13 @@ public FGuid Guid
6970
set => SetProperty(ref _guid, value);
7071
}
7172

73+
private CompressionMethod[] _compressionMethods;
74+
public CompressionMethod[] CompressionMethods
75+
{
76+
get => _compressionMethods;
77+
set => SetProperty(ref _compressionMethods, value);
78+
}
79+
7280
public FileItem(string name, long length)
7381
{
7482
Name = name;
@@ -84,6 +92,7 @@ public FileItem(IAesVfsReader reader)
8492
IsEnabled = false;
8593
Key = string.Empty;
8694
FileCount = reader is IoStoreReader storeReader ? (int) storeReader.TocResource.Header.TocEntryCount - 1 : 0;
95+
CompressionMethods = reader.CompressionMethods;
8796
}
8897

8998
public override string ToString()

FModel/ViewModels/GameSelectorViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ private IEnumerable<EGame> EnumerateUeGames()
8787
.OrderBy(value => ((int)value & 0xFF) == 0);
8888
private IEnumerable<DirectorySettings> EnumerateDetectedGames()
8989
{
90-
yield return GetUnrealEngineGame("Fortnite", "\\FortniteGame\\Content\\Paks", EGame.GAME_UE5_6);
91-
yield return DirectorySettings.Default("Fortnite [LIVE]", Constants._FN_LIVE_TRIGGER, ue: EGame.GAME_UE5_6);
90+
yield return GetUnrealEngineGame("Fortnite", "\\FortniteGame\\Content\\Paks", EGame.GAME_UE5_7);
91+
yield return DirectorySettings.Default("Fortnite [LIVE]", Constants._FN_LIVE_TRIGGER, ue: EGame.GAME_UE5_7);
9292
yield return GetUnrealEngineGame("Pewee", "\\RogueCompany\\Content\\Paks", EGame.GAME_RogueCompany);
9393
yield return GetUnrealEngineGame("Rosemallow", "\\Indiana\\Content\\Paks", EGame.GAME_UE4_21);
9494
yield return GetUnrealEngineGame("Catnip", "\\OakGame\\Content\\Paks", EGame.GAME_Borderlands3);

0 commit comments

Comments
 (0)