Skip to content

Commit

Permalink
Fix bug with relative paths that are too similar
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Oct 14, 2024
1 parent d6b33cd commit 6d89956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BinxelviewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ string saveIni(string path)
{
string p = Path.GetFullPath(preset_dir);
if (p == fulldir) p = "";
else if (p.StartsWith(fulldir)) p = p.Substring(fulldir.Length+1);
else if (p.StartsWith(fulldir+Path.PathSeparator)) p = p.Substring(fulldir.Length+1);
sw.WriteLine("presetdir=" + p);
}
foreach (Preset pi in presets) // save current preset if it exists in the library
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Changes
-------

1.6.3.0 (unreleased beta)
- No changes yet.
- Fix relative INI path edge case, when the target directory has a similar name to the INI directory.

1.6.2.0 (2024-10-13)
- Option persistence, INI file save and load.
Expand Down

0 comments on commit 6d89956

Please sign in to comment.