From d869b87566c4c7b41b2c4513be0ca95c5505de28 Mon Sep 17 00:00:00 2001
From: ZXW <826696702@qq.com>
Date: 星期四, 09 八月 2018 14:41:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Core/GameEngine/Model/ConfigManager.cs | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/Core/GameEngine/Model/ConfigManager.cs b/Core/GameEngine/Model/ConfigManager.cs
index a644121..7778f95 100644
--- a/Core/GameEngine/Model/ConfigManager.cs
+++ b/Core/GameEngine/Model/ConfigManager.cs
@@ -403,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)
{
--
Gitblit v1.8.0