From 0612eac4b45ac68377f75b55a0f6ff70d720ca9e Mon Sep 17 00:00:00 2001 From: MattNL Date: Fri, 12 Aug 2022 06:28:18 -0400 Subject: [PATCH] fix for missing function --- PCK-Studio/Forms/Editor/AudioEditor.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PCK-Studio/Forms/Editor/AudioEditor.cs b/PCK-Studio/Forms/Editor/AudioEditor.cs index cfa60505..febba702 100644 --- a/PCK-Studio/Forms/Editor/AudioEditor.cs +++ b/PCK-Studio/Forms/Editor/AudioEditor.cs @@ -424,5 +424,11 @@ namespace PckStudio.Forms.Editor { if (saved) saveToolStripMenuItem1_Click(sender, e, playOverworldInCreative.Checked); } + // For when the Data Directory variable is null, this sets the variable in the form + private void getDataDirectory() + { + MainForm parent = Owner.Owner as MainForm; // Gets the MainForm so we can access the Save Location + DataDirectory = Path.Combine(Path.GetDirectoryName(parent.saveLocation), "Data"); + } } }