FN 38.00 fixes and Infinity Nikki update

This commit is contained in:
LongerWarrior 2025-11-04 00:10:26 +02:00
parent 69d83d5257
commit 1f10656d91
2 changed files with 21 additions and 1 deletions

@ -1 +1 @@
Subproject commit 2c56a6810fe5895359e21a4919a2b2657c646f73
Subproject commit 2669aa9c4b7f593911c0057c34874bcda7839914

View File

@ -734,6 +734,26 @@ public class CUE4ParseViewModel : ViewModel
break;
}
case "bank":
{
var archive = entry.CreateReader();
if (!FModProvider.TryLoadBank(archive, entry.NameWithoutExtension, out var fmodReader))
{
Log.Error($"Failed to load FMOD bank {entry.Path}");
break;
}
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(fmodReader, Formatting.Indented, converters: [new FmodSoundBankConverter(), new StringEnumConverter()]), saveProperties, updateUi);
var extractedSounds = FmodProvider.ExtractBankSounds(fmodReader);
var directory = Path.GetDirectoryName(entry.Path) ?? "/FMOD/Desktop/";
foreach (var sound in extractedSounds)
{
SaveAndPlaySound(Path.Combine(directory, sound.Name), sound.Extension, sound.Data, saveAudio);
}
break;
}
case "bnk":
case "pck":
{