Small fix
Some checks failed
FModel QA Builder / build (push) Has been cancelled

This commit is contained in:
Masusder 2026-05-23 23:11:05 +02:00
parent b1c7734957
commit 3a529b304f
6 changed files with 8 additions and 2 deletions

View File

@ -163,6 +163,7 @@ public enum EAssetCategory : uint
Aion2 = GameSpecific + 2,
RocoKingdomWorld = GameSpecific + 3,
DeltaForce = GameSpecific + 4,
LegoBatman = GameSpecific + 5,
}
public enum EUnluacMode

View File

@ -571,7 +571,7 @@ public class AudioPlayerViewModel : ViewModel, ISource, IDisposable
if (SelectedAudioFile?.Data == null)
return false;
if (SelectedAudioFile.Extension == "wav")
return false;
return true;
if (!TryConvert(SelectedAudioFile.FilePath, SelectedAudioFile.Data, SelectedAudioFile.Extension, out var convertedFilePath, true))
return false;

View File

@ -10,6 +10,7 @@ using CUE4Parse.FileProvider.Objects;
using CUE4Parse.GameTypes.Borderlands3.Assets.Exports;
using CUE4Parse.GameTypes.Borderlands4.Assets.Exports;
using CUE4Parse.GameTypes.FN.Assets.Exports.DataAssets;
using CUE4Parse.GameTypes.LegoBatman.Assets;
using CUE4Parse.GameTypes.SMG.UE4.Assets.Exports.Wwise;
using CUE4Parse.GameTypes.SMG.UE4.Assets.Objects;
using CUE4Parse.GameTypes.SquareEnix.UE4.Assets.Exports;
@ -263,6 +264,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel
UBorderlandsDialogObject when GameVersion is EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.None), // Borderlands 3;
UGbxGraphAsset or UDialogScriptData or UDialogPerformanceData when GameVersion is EGame.GAME_Borderlands4 or EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4; Borderlands 3;
UFaceFXAnimSet when GameVersion is EGame.GAME_Borderlands4 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4;
UWubAudioEvent or UWubDialogueEvent when GameVersion is EGame.GAME_LEGOBatmanLegacyoftheDarkKnight => (EAssetCategory.LegoBatman, EBulkType.Audio), // Lego Batman: Legacy of the Dark Knight;
_ => (EAssetCategory.All, EBulkType.None),
};

View File

@ -57,4 +57,5 @@
<SolidColorBrush x:Key="AionBrush" Color="DeepSkyBlue"></SolidColorBrush>
<SolidColorBrush x:Key="RocoKingdomWorldBrush" Color="#fecf4d"></SolidColorBrush>
<SolidColorBrush x:Key="DeltaForceBrush" Color="LightGreen"></SolidColorBrush>
<SolidColorBrush x:Key="BatmanBrush" Color="Gold"></SolidColorBrush>
</ResourceDictionary>

View File

@ -97,6 +97,7 @@ public class FileToGeometryConverter : IMultiValueConverter
EAssetCategory.Aion2 => ("AionIcon", "AionBrush"),
EAssetCategory.RocoKingdomWorld => ("RocoKingdomWorldIcon", "RocoKingdomWorldBrush"),
EAssetCategory.DeltaForce => ("DeltaForceIcon", "DeltaForceBrush"),
EAssetCategory.LegoBatman => ("BatmanIcon", "BatmanBrush"),
_ => ("AssetIcon", "NeutralBrush")
};

File diff suppressed because one or more lines are too long