Skip to content

Commit

Permalink
Fix broken paths in zips
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalobi authored Apr 14, 2024
1 parent cd2f6ad commit b3b6ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CelesteMod/Source/CelesteMod-core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<Code Type="Fragment" Language="cs">
<![CDATA[
var projectDir = Path.Combine(@"$(ProjectDir)", ".."); // Go one level up, since we're inside the 'Source' directory
projectDir = Uri.UnescapeDataString(projectDir);
if (File.Exists(OutputPath))
File.Delete(OutputPath);
Expand Down Expand Up @@ -90,7 +91,7 @@
if (toUri.Scheme.Equals("file", StringComparison.InvariantCultureIgnoreCase))
{
relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
relativePath = relativePath.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
}
return relativePath;
Expand Down

0 comments on commit b3b6ad5

Please sign in to comment.