【version】修复设置version文件失败的问题

dev_chengFeng
gaoxin 2021-09-06 11:02:11 +08:00
parent 17001dd7d8
commit 65dfb661ad
1 changed files with 2 additions and 1 deletions

View File

@ -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);