From 42bc321092985e11d4baed73a0b5d22aef0b536b Mon Sep 17 00:00:00 2001 From: thegu5 <58223632+thegu5@users.noreply.github.com> Date: Sat, 24 Aug 2024 01:40:32 -0400 Subject: [PATCH] Clean type namespace before being used as a path --- Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs b/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs index 10f95dbb..1ba5b4e1 100644 --- a/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs +++ b/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs @@ -98,7 +98,7 @@ public string NamespaceAsSubdirs get { var ns = Namespace; - return string.IsNullOrEmpty(ns) ? "" : Path.Combine(ns.Split('.')); + return string.IsNullOrEmpty(ns) ? "" : Path.Combine(MiscUtils.CleanPathElement(ns).Split('.')); } }