少年修仙传客户端代码仓库
QD_LCJ
2018-08-10 c9cd6e462d9439e9a7734a02976380f74e9af596
Core/GameEngine/Model/ConfigManager.cs
@@ -13,7 +13,7 @@
    public static string CustomIV = "4vHKRj3yfzU=";
    public static string CustomKey = "xhVs6DRXLfUGxw+AhtfQdpQGoa+8SA9d";
    protected string[] lineStep = new string[] { "\r\n" }; //行间隔体
    protected string[] lineStep = new string[] { "\r\n","\n" }; //行间隔体
    protected string[] rowStep = new string[] { "\t" }; //段间隔体
    bool isPlaying = true;
@@ -374,8 +374,7 @@
        }
        else
        {
            var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("config/", fileName, ".bytes"));
            path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, assetVersion.relativePath);
            path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, "config/", fileName, ".bytes");
        }
        var task = new ConfigTask(typeof(T), AssetSource.refdataFromEditor ? AssetPath.ResourceOut : AssetPath.External, path);
@@ -404,11 +403,7 @@
                {
                    if (_task.assetPath == AssetPath.ResourceOut)
                    {
                        var fileInfo = new FileInfo(_task.filePath);
                        var fs = fileInfo.OpenRead();
                        sr = new StreamReader(fs, Encoding.UTF8);
                        var content = sr.ReadToEnd();
                        lines = content.Split(lineStep, StringSplitOptions.None);
                        lines = File.ReadAllLines(_task.filePath,Encoding.UTF8);
                    }
                    else if (_task.assetPath == AssetPath.External)
                    {