From 6237dbe36b5780afc11f9a47286af512fbc368e7 Mon Sep 17 00:00:00 2001 From: MayNL Date: Sun, 21 Jun 2026 19:09:22 -0400 Subject: [PATCH] Fix .txt files being imported in batch file drops --- PCK-Studio/Controls/Editor/PckEditor.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PCK-Studio/Controls/Editor/PckEditor.cs b/PCK-Studio/Controls/Editor/PckEditor.cs index 3aaabc5c..0d9a932a 100644 --- a/PCK-Studio/Controls/Editor/PckEditor.cs +++ b/PCK-Studio/Controls/Editor/PckEditor.cs @@ -1337,6 +1337,16 @@ namespace PckStudio.Controls bool askForAssetType = true; foreach (var filepath in files) { + if (filepath.EndsWith(".txt") && fileCount > 1) + { + string originalFile = Path.Combine( + Path.GetDirectoryName(filepath)!, + Path.GetFileNameWithoutExtension(filepath)); + + if (File.Exists(originalFile)) + continue; + } + string assetPath = Path.Combine(prefix + filepath.Substring(baseDirectory.Length)).TrimStart('/', '\\'); PckAssetType assetType = lastSelectedAssetType;