Skip to content

Commit

Permalink
no leading dir separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Jul 19, 2017
1 parent 5040448 commit 612e98c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion PluginLoader/PathExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static string Combine(params string[] pathParts)
continue;
}

char lastChar = path.Length != 0 ? path[path.Length - 1] : ' ', firstChar;
char lastChar = path.Length != 0 ? path[path.Length - 1] : Path.DirectorySeparatorChar;
char firstChar;
if (lastChar == Path.DirectorySeparatorChar || lastChar == Path.AltDirectorySeparatorChar || (firstChar = pp[0]) == Path.DirectorySeparatorChar || firstChar == Path.AltDirectorySeparatorChar)
path += pp;
else
Expand Down
2 changes: 1 addition & 1 deletion PluginManager/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.5.0")]
[assembly: AssemblyVersion("1.1.5.1")]

0 comments on commit 612e98c

Please sign in to comment.