Skip to content

Commit b3b6ad5

Browse files
authored
Fix broken paths in zips
1 parent cd2f6ad commit b3b6ad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CelesteMod/Source/CelesteMod-core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<Code Type="Fragment" Language="cs">
6161
<![CDATA[
6262
var projectDir = Path.Combine(@"$(ProjectDir)", ".."); // Go one level up, since we're inside the 'Source' directory
63+
projectDir = Uri.UnescapeDataString(projectDir);
6364
6465
if (File.Exists(OutputPath))
6566
File.Delete(OutputPath);
@@ -90,7 +91,7 @@
9091
9192
if (toUri.Scheme.Equals("file", StringComparison.InvariantCultureIgnoreCase))
9293
{
93-
relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
94+
relativePath = relativePath.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
9495
}
9596
9697
return relativePath;

0 commit comments

Comments
 (0)