This commit is contained in:
Michele Scandura 2020-12-01 17:38:07 +00:00
parent b2567b2a01
commit 1e244795fc
49 changed files with 2767 additions and 78 deletions

View file

@ -16,7 +16,7 @@ namespace Sledgemapper
Dictionary<string, T> result = new();
FileInfo[] files = dir.GetFiles("*.*");
foreach (FileInfo file in files.Where(f=>f.Extension!=".ttf"))
foreach (FileInfo file in files.Where(f => f.Extension != ".ttf" && f.Extension != ".otf"))
{
result.Add(file.Name.Split('.')[0], contentManager.Load<T>(contentFolder + "/" + file.Name.Split('.')[0]));
}