| | |
| | | }
|
| | | 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);
|
| | |
| | | {
|
| | | 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)
|
| | | {
|