【version】修复设置version文件失败的问题
parent
17001dd7d8
commit
65dfb661ad
|
|
@ -257,7 +257,7 @@ namespace GameEditor.FrameTool {
|
|||
static string versionPath = Application.dataPath + "/../Version";
|
||||
static string editorVersion = Application.dataPath + "/../AssetBundles";// + AppConst.GameVersionFile;
|
||||
//static string persistVersion = Application.dataPath + "/Resources/version.txt";
|
||||
static string streamVersion = AppConst.StreamPath + AppConst.GameVersionFile;
|
||||
static string streamVersion = AppConst.StreamPath;
|
||||
|
||||
static VersionTxt m_VersionTxt; // 热更版本
|
||||
|
||||
|
|
@ -311,6 +311,7 @@ namespace GameEditor.FrameTool {
|
|||
// 保存到version
|
||||
private static void SaveToVersion(string path, string json)
|
||||
{
|
||||
path += "/" + AppConst.GameVersionFile;
|
||||
if (!string.IsNullOrEmpty(path) && File.Exists(path))
|
||||
{
|
||||
File.WriteAllText(path, json);
|
||||
|
|
|
|||
Loading…
Reference in New Issue