mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
FN 38.00 fixes and Infinity Nikki update
This commit is contained in:
parent
69d83d5257
commit
1f10656d91
|
|
@ -1 +1 @@
|
|||
Subproject commit 2c56a6810fe5895359e21a4919a2b2657c646f73
|
||||
Subproject commit 2669aa9c4b7f593911c0057c34874bcda7839914
|
||||
|
|
@ -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":
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user