LEGO Batman: Legacy of the Dark Knight support
Some checks failed
FModel QA Builder / build (push) Has been cancelled

Squad, Mortal Kombat 1 update
This commit is contained in:
LongerWarrior 2026-05-22 01:33:39 +03:00
parent fa12e8ec3b
commit 2c2123d601
2 changed files with 23 additions and 1 deletions

@ -1 +1 @@
Subproject commit 8bff2f73dd9f826c35a21c57c7dd48b642bd98c4
Subproject commit ecc4878950336126f125af0747190edf474b2a21

View File

@ -26,6 +26,7 @@ using CUE4Parse.GameTypes.Borderlands4.Wwise;
using CUE4Parse.GameTypes.DFHO.Assets.Objects;
using CUE4Parse.GameTypes.HonorOfKings.FileProvider;
using CUE4Parse.GameTypes.KRD.Assets.Exports;
using CUE4Parse.GameTypes.LegoBatman.Assets;
using CUE4Parse.GameTypes.RocoKingdomWorld.Assets.Objects;
using CUE4Parse.GameTypes.SMG.UE4.Assets.Exports.Wwise;
using CUE4Parse.GameTypes.SquareEnix.UE4.Assets.Exports;
@ -1438,6 +1439,27 @@ public class CUE4ParseViewModel : ViewModel
return false;
}
// LEGO® Batman™: Legacy of the Dark Knight
case UWubAudioEvent when (isNone || saveAudio) && pointer.Object.Value is UWubAudioEvent wubAudioEvent:
{
var extractedSounds = WwiseProvider.ExtractWubAudioEventSounds(wubAudioEvent);
foreach (var sound in extractedSounds)
{
SaveAndPlaySound(cancellationToken, sound.OutputPath, sound.Extension, sound.Data?.GetData() ?? [], saveAudio, updateUi);
}
return false;
}
case UWubDialogueEvent when (isNone || saveAudio) && pointer.Object.Value is UWubDialogueEvent wubDialogueEvent:
{
var files = wubDialogueEvent.Wems
.SelectMany(wem => Provider.Files.Values.Where(file => file.Path.EndsWith(wem.Text + ".wem", StringComparison.OrdinalIgnoreCase)))
.ToList();
foreach (var entry in files)
{
SaveAndPlaySound(cancellationToken, entry.PathWithoutExtension, entry.Extension, entry.Read(), saveAudio, updateUi);
}
return false;
}
case UWorld when isNone && UserSettings.Default.PreviewWorlds:
case UBlueprintGeneratedClass when isNone && UserSettings.Default.PreviewWorlds && TabControl.SelectedTab.ParentExportType switch
{