add snap metric to anticheat

update various small code bits
This commit is contained in:
RaidMax
2019-09-09 17:40:04 -05:00
parent 148d28eaca
commit c18be20899
27 changed files with 2768 additions and 269 deletions

View File

@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
@ -24,7 +25,7 @@ namespace WebfrontCore.Controllers
if (!_fileCache.ContainsKey(fileName))
{
string path = $"wwwroot\\css\\{fileName}";
string path = $"wwwroot{Path.DirectorySeparatorChar}css{Path.DirectorySeparatorChar}{fileName}";
string data = await System.IO.File.ReadAllTextAsync(path);
data = await Manager.MiddlewareActionHandler.Execute(data, "custom_css_accent");
_fileCache.Add(fileName, data);