diff --git a/BinxelviewForm.cs b/BinxelviewForm.cs index f4ed553..4b79816 100644 --- a/BinxelviewForm.cs +++ b/BinxelviewForm.cs @@ -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 diff --git a/readme.txt b/readme.txt index 75f8648..d45028b 100644 --- a/readme.txt +++ b/readme.txt @@ -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.