少年修仙传客户端代码仓库
QD-PangDeRong
2018-08-09 1b2a902d635669056b793b654eaaf80e16d6373f
Core/GameEngine/Model/ConfigManager.cs
@@ -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)
                    {