【配置】获取配置前,拉取更新
parent
a15bd40b96
commit
a3bc278624
|
@ -41,6 +41,7 @@ public class ClientConfigManager
|
||||||
// 获取所有的version文件列表
|
// 获取所有的version文件列表
|
||||||
public string[] GetVersionList()
|
public string[] GetVersionList()
|
||||||
{
|
{
|
||||||
|
SVN_Update();
|
||||||
string versionPath = localPath + "/Version";
|
string versionPath = localPath + "/Version";
|
||||||
string[] list = Directory.GetDirectories(versionPath);
|
string[] list = Directory.GetDirectories(versionPath);
|
||||||
Debug.LogError(list.Length);
|
Debug.LogError(list.Length);
|
||||||
|
@ -50,6 +51,7 @@ public class ClientConfigManager
|
||||||
// 获取热更新用的配置文件
|
// 获取热更新用的配置文件
|
||||||
public Hashtable GetHotFixConfig()
|
public Hashtable GetHotFixConfig()
|
||||||
{
|
{
|
||||||
|
SVN_Update();
|
||||||
string hotfixConfig = localPath + "/HotFixWindow.txt";
|
string hotfixConfig = localPath + "/HotFixWindow.txt";
|
||||||
Hashtable config = null;
|
Hashtable config = null;
|
||||||
if (File.Exists(hotfixConfig))
|
if (File.Exists(hotfixConfig))
|
||||||
|
@ -64,6 +66,7 @@ public class ClientConfigManager
|
||||||
// 获取打包工具配置文件
|
// 获取打包工具配置文件
|
||||||
public Hashtable GetAutoPackConfig()
|
public Hashtable GetAutoPackConfig()
|
||||||
{
|
{
|
||||||
|
SVN_Update();
|
||||||
string hotfixConfig = localPath + "/AutoPack.txt";
|
string hotfixConfig = localPath + "/AutoPack.txt";
|
||||||
Hashtable config = null;
|
Hashtable config = null;
|
||||||
if (File.Exists(hotfixConfig))
|
if (File.Exists(hotfixConfig))
|
||||||
|
@ -76,6 +79,7 @@ public class ClientConfigManager
|
||||||
// 获取校验服同步工程配置文件
|
// 获取校验服同步工程配置文件
|
||||||
public Hashtable GetFightServerConfig()
|
public Hashtable GetFightServerConfig()
|
||||||
{
|
{
|
||||||
|
SVN_Update();
|
||||||
string hotfixConfig = localPath + "/FightServer.txt";
|
string hotfixConfig = localPath + "/FightServer.txt";
|
||||||
Hashtable config = null;
|
Hashtable config = null;
|
||||||
if (File.Exists(hotfixConfig))
|
if (File.Exists(hotfixConfig))
|
||||||
|
|
|
@ -326,7 +326,6 @@ namespace GameEditor.FrameTool {
|
||||||
{
|
{
|
||||||
//if (!string.IsNullOrEmpty(versionPath) && Directory.Exists(versionPath))
|
//if (!string.IsNullOrEmpty(versionPath) && Directory.Exists(versionPath))
|
||||||
//{
|
//{
|
||||||
ClientConfigManager.Instance.SVN_Update();
|
|
||||||
m_Files = ClientConfigManager.Instance.GetVersionList();//Directory.GetFiles(versionPath, "*.txt", SearchOption.AllDirectories);
|
m_Files = ClientConfigManager.Instance.GetVersionList();//Directory.GetFiles(versionPath, "*.txt", SearchOption.AllDirectories);
|
||||||
m_Choose = new bool[m_Files.Length];
|
m_Choose = new bool[m_Files.Length];
|
||||||
//}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue