(client) chore: Rename FileHandler
to ConfigProcessor
This commit is contained in:
@ -8,7 +8,7 @@ using Formatting = Newtonsoft.Json.Formatting;
|
||||
|
||||
namespace Configs
|
||||
{
|
||||
public static class FileHandler
|
||||
public static class ConfigProcessor
|
||||
{
|
||||
// 保存文件的默认文件夹路径
|
||||
private const string FolderPath = "save";
|
||||
@ -16,7 +16,7 @@ namespace Configs
|
||||
/// <summary>
|
||||
/// 初始化文件夹
|
||||
/// </summary>
|
||||
static FileHandler()
|
||||
static ConfigProcessor()
|
||||
{
|
||||
if (!Directory.Exists(FolderPath)) Directory.CreateDirectory(FolderPath);
|
||||
}
|
@ -110,7 +110,7 @@ namespace Data
|
||||
|
||||
public bool LoadPack(string packPath)
|
||||
{
|
||||
var packDatas = FileHandler.LoadXmlFromPath(packPath);
|
||||
var packDatas = ConfigProcessor.LoadXmlFromPath(packPath);
|
||||
var aboutXmls = FindDocumentsWithRootName(packDatas, "About");
|
||||
if (aboutXmls == null || aboutXmls.Count < 1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user