Skip to content

Commit

Permalink
Replace Path.DirectorySeparatorChar with Path.Combine()
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Jul 28, 2023
1 parent 70ef287 commit 31ef4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entitas.Unity.Editor/EntityDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static void DrawUnsupportedType(Type memberType, string memberName, object value
public static void GenerateIDefaultInstanceCreator(string typeName)
{
var folder = "Assets/Editor/DefaultInstanceCreator";
var filePath = folder + Path.DirectorySeparatorChar + "Default" + typeName.TypeName() + "InstanceCreator.cs";
var filePath = Path.Combine(folder, "Default" + typeName.TypeName() + "InstanceCreator.cs");
var template = DefaultInstanceCreatorTemplateFormat
.Replace("${Type}", typeName)
.Replace("${ShortType}", typeName.TypeName());
Expand All @@ -389,7 +389,7 @@ public static void GenerateIDefaultInstanceCreator(string typeName)
public static void GenerateITypeDrawer(string typeName)
{
var folder = "Assets/Editor/TypeDrawer";
var filePath = folder + Path.DirectorySeparatorChar + typeName.TypeName() + "TypeDrawer.cs";
var filePath = Path.Combine(folder, typeName.TypeName() + "TypeDrawer.cs");
var template = TypeDrawerTemplateFormat
.Replace("${Type}", typeName)
.Replace("${ShortType}", typeName.TypeName());
Expand Down

0 comments on commit 31ef4cc

Please sign in to comment.