Skip to content

Commit 1f10656

Browse files
committed
FN 38.00 fixes and Infinity Nikki update
1 parent 69d83d5 commit 1f10656

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CUE4Parse

Submodule CUE4Parse updated 97 files

FModel/ViewModels/CUE4ParseViewModel.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,26 @@ public void Extract(CancellationToken cancellationToken, GameFile entry, bool ad
734734

735735
break;
736736
}
737+
case "bank":
738+
{
739+
var archive = entry.CreateReader();
740+
if (!FModProvider.TryLoadBank(archive, entry.NameWithoutExtension, out var fmodReader))
741+
{
742+
Log.Error($"Failed to load FMOD bank {entry.Path}");
743+
break;
744+
}
745+
746+
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(fmodReader, Formatting.Indented, converters: [new FmodSoundBankConverter(), new StringEnumConverter()]), saveProperties, updateUi);
747+
748+
var extractedSounds = FmodProvider.ExtractBankSounds(fmodReader);
749+
var directory = Path.GetDirectoryName(entry.Path) ?? "/FMOD/Desktop/";
750+
foreach (var sound in extractedSounds)
751+
{
752+
SaveAndPlaySound(Path.Combine(directory, sound.Name), sound.Extension, sound.Data, saveAudio);
753+
}
754+
755+
break;
756+
}
737757
case "bnk":
738758
case "pck":
739759
{

0 commit comments

Comments
 (0)