From 94e98478712ce59d1ffd14f880b3a7a8547dff2a Mon Sep 17 00:00:00 2001 From: MattNL Date: Tue, 4 Oct 2022 13:26:10 -0400 Subject: [PATCH] Added "functionality" to BinkaToWav function --- PCK-Studio/Forms/Editor/AudioEditor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PCK-Studio/Forms/Editor/AudioEditor.cs b/PCK-Studio/Forms/Editor/AudioEditor.cs index 428e92ac..ca958a1b 100644 --- a/PCK-Studio/Forms/Editor/AudioEditor.cs +++ b/PCK-Studio/Forms/Editor/AudioEditor.cs @@ -468,7 +468,10 @@ namespace PckStudio.Forms.Editor private void convertToWAVToolStripMenuItem_Click(object sender, EventArgs e) { - + if (treeView2.SelectedNode != null && treeView1.SelectedNode.Tag is PCKAudioFile.AudioCategory) + { + BINK.BinkaToWav(Path.Combine(parent.GetDataPath(), treeView2.SelectedNode.Text + ".binka"), Path.Combine(parent.GetDataPath())); + } } } }