Config: Use Microsoft's INI implementation instead of a 3rd party's
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user