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