mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-15 14:51:21 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
14 lines
397 B
C#
Executable file
14 lines
397 B
C#
Executable file
using System.IO;
|
|
using System.Linq;
|
|
|
|
namespace FSO.Common.Utils
|
|
{
|
|
public static class PathCaseTools
|
|
{
|
|
public static string Insensitive(string file)
|
|
{
|
|
var dir = Directory.GetFiles(Path.GetDirectoryName(file));
|
|
return dir.FirstOrDefault(x => x.ToLowerInvariant().Replace('\\', '/') == file.ToLowerInvariant().Replace('\\', '/'));
|
|
}
|
|
}
|
|
}
|