From d6e3e63ba8ca1e930c367ff1194da0818425dd25 Mon Sep 17 00:00:00 2001 From: MattNL Date: Sun, 25 Sep 2022 16:32:49 -0400 Subject: [PATCH] added fix for paths with backslashes --- PCK-Studio/MainForm.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 7b4b6d24..045f11e5 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -245,8 +245,9 @@ namespace PckStudio { foreach (var file in pckFile.Files) { - // Replace backward slashes('\') with forward slashes('/') since some filepath use backward slashes - TreeNode node = BuildNodeTreeBySeperator(root, file.filepath.Replace('\\', '/'), '/'); + // Replace backward slashes('\') with forward slashes('/') since some filepath use backward slashes + file.filepath = file.filepath.Replace('\\', '/'); // fix any file paths that may be incorrect + TreeNode node = BuildNodeTreeBySeperator(root, file.filepath, '/'); node.Tag = file; switch (file.filetype) {