From de811af0088242a549b36b4e69276c06d27f10c8 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Tue, 20 Sep 2022 18:10:08 +0200 Subject: [PATCH] Re-Added replacing backward slashes with forward slashes in BuildPckTreeView and added a comment explaining why --- PCK-Studio/MainForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 91cfb0aa..388f7bdf 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -243,7 +243,8 @@ namespace PckStudio { foreach (var file in pckFile.Files) { - TreeNode node = BuildNodeTreeBySeperator(root, file.filepath, '/'); + // Replace backward slashes('\') with forward slashes('/') since some filepath use backward slashes + TreeNode node = BuildNodeTreeBySeperator(root, file.filepath.Replace('\\', '/'), '/'); node.Tag = file; switch (file.filetype) {