Skip to content

Commit 66cda69

Browse files
committed
fix: normalize file path for linux xnb convertion
1 parent c65e225 commit 66cda69

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Interface/Actions/ConvertToXnbAction.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ public void Execute(Dictionary<string, string> args)
8484
if (!converted) return;
8585

8686
var assetOutputFullPath = Path.Combine(outputPath, $"{path}{extension}");
87+
string assetOutputFullPathNormalized = Path.Combine(assetOutputFullPath.Split('/', '\\'));
8788

88-
Directory.CreateDirectory(Path.GetDirectoryName(assetOutputFullPath) ?? "");
89+
Directory.CreateDirectory(Path.GetDirectoryName(assetOutputFullPathNormalized) ?? "");
8990

90-
using var assetFile = File.Create(assetOutputFullPath);
91+
using var assetFile = File.Create(assetOutputFullPathNormalized);
9192
stream.CopyTo(assetFile);
9293
});
9394
}

0 commit comments

Comments
 (0)