Skip to content

Commit

Permalink
Fix issue with save configuration in path with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Defter committed Jan 26, 2021
1 parent 7f18779 commit 65e5132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SCTools/SCTools/Program.Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static bool IsGameModeFolderName(string folderName)
private static string GetExecutableDir()
{
var location = new Uri(Assembly.GetExecutingAssembly().GetName().CodeBase);
var dirInfo = new FileInfo(location.AbsolutePath).Directory;
var dirInfo = new FileInfo(location.LocalPath).Directory;
if (dirInfo == null) throw new NullReferenceException("No assembly executable directory");
return dirInfo.FullName;
}
Expand Down
2 changes: 1 addition & 1 deletion SCTools/SCTools/SCTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<NoWin32Manifest>true</NoWin32Manifest>
<StartupObject>NSW.StarCitizen.Tools.Program</StartupObject>
<Nullable>enable</Nullable>
<Version>0.5.3</Version>
<Version>0.5.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 65e5132

Please sign in to comment.