Config: Use Microsoft's INI implementation instead of a 3rd party's

This commit is contained in:
2023-12-02 13:04:50 +01:00
parent 7528764ff3
commit 03a9a3793a
3 changed files with 23 additions and 51 deletions

View File

@ -11,6 +11,7 @@ using Elwig.Dialogs;
using System.Text;
using System.Numerics;
using Elwig.Models.Entities;
using System.IO;
namespace Elwig.Helpers {
public static partial class Utils {
@ -345,5 +346,9 @@ namespace Elwig.Helpers {
}
return output.OrderByDescending(l => l.Count());
}
public static string GetAbsolutePath(string path, string basePath) {
return (path.Length > 1 && (path[1] == ':' || path[0] == '/' || path[0] == '\\')) ? Path.Combine(basePath, path) : path;
}
}
}