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