From 7a4b2eadbcdb76e4f77328eb37c87203ef417630 Mon Sep 17 00:00:00 2001 From: MattNL Date: Sun, 30 Apr 2023 23:14:02 -0400 Subject: [PATCH] Re added "audio.pck" filename just in case --- PCK-Studio/MainForm.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 3887a9b3..5c5a83e4 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -849,6 +849,12 @@ namespace PckStudio MessageBox.Show("There is already an music cues PCK present in this PCK!", "Can't create audio.pck"); return; } + else if (currentPCK.Files.FindIndex(file => file.Filename == "audio.pck") != -1) + { + // the chances of this happening is really really slim but just in case + MessageBox.Show("There is already a file in this PCK named \"audio.pck\"!", "Can't create audio.pck"); + return; + } if (String.IsNullOrEmpty(saveLocation)) { MessageBox.Show("You must save your pck before creating or opening a music cues PCK file", "Can't create audio.pck");