Show CompressionMethods in Archives Info
Some checks failed
FModel QA Builder / build (push) Has been cancelled

This commit is contained in:
GhostScissors 2025-11-25 01:33:21 +05:30
parent 1846b82802
commit f51ad82e1f
3 changed files with 12 additions and 3 deletions

View File

@ -566,6 +566,7 @@ public class AudioPlayerViewModel : ViewModel, ISource, IDisposable
switch (SelectedAudioFile.Extension)
{
case "binka":
case "adpcm":
case "xvag":
case "opus":
@ -586,7 +587,6 @@ public class AudioPlayerViewModel : ViewModel, ISource, IDisposable
case "hca":
return TryConvertCriware();
case "rada":
case "binka":
{
if (TryDecode(SelectedAudioFile.Extension, out var rawFilePath))
{

View File

@ -5,6 +5,7 @@ using System.Linq;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Data;
using CUE4Parse.Compression;
using CUE4Parse.UE4.IO;
using CUE4Parse.UE4.Objects.Core.Misc;
using CUE4Parse.UE4.VirtualFileSystem;
@ -69,6 +70,13 @@ public class FileItem : ViewModel
set => SetProperty(ref _guid, value);
}
private CompressionMethod[] _compressionMethods;
public CompressionMethod[] CompressionMethods
{
get => _compressionMethods;
set => SetProperty(ref _compressionMethods, value);
}
public FileItem(string name, long length)
{
Name = name;
@ -84,6 +92,7 @@ public class FileItem : ViewModel
IsEnabled = false;
Key = string.Empty;
FileCount = reader is IoStoreReader storeReader ? (int) storeReader.TocResource.Header.TocEntryCount - 1 : 0;
CompressionMethods = reader.CompressionMethods;
}
public override string ToString()

View File

@ -87,8 +87,8 @@ public class GameSelectorViewModel : ViewModel
.OrderBy(value => ((int)value & 0xFF) == 0);
private IEnumerable<DirectorySettings> EnumerateDetectedGames()
{
yield return GetUnrealEngineGame("Fortnite", "\\FortniteGame\\Content\\Paks", EGame.GAME_UE5_6);
yield return DirectorySettings.Default("Fortnite [LIVE]", Constants._FN_LIVE_TRIGGER, ue: EGame.GAME_UE5_6);
yield return GetUnrealEngineGame("Fortnite", "\\FortniteGame\\Content\\Paks", EGame.GAME_UE5_7);
yield return DirectorySettings.Default("Fortnite [LIVE]", Constants._FN_LIVE_TRIGGER, ue: EGame.GAME_UE5_7);
yield return GetUnrealEngineGame("Pewee", "\\RogueCompany\\Content\\Paks", EGame.GAME_RogueCompany);
yield return GetUnrealEngineGame("Rosemallow", "\\Indiana\\Content\\Paks", EGame.GAME_UE4_21);
yield return GetUnrealEngineGame("Catnip", "\\OakGame\\Content\\Paks", EGame.GAME_Borderlands3);