Scripts目录不再必要存在,并移除 livePage.js; 调整项目结构

This commit is contained in:
梅浩东
2025-04-14 16:18:49 +08:00
parent 15bbe3bead
commit 1b747146f9
15 changed files with 80 additions and 106 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ namespace BarrageGrab
public static string GetJsFile(string fileName)
{
var path = Path.Combine(AppContext.BaseDirectory, "Scripts", "engine", fileName);
if (!File.Exists(path)) throw new FileNotFoundException("不存在的文件", path);
if (!File.Exists(path)) return null;
return File.ReadAllText(path, Encoding.UTF8);
}