public override void Enter(AutoUpdateMgr target)
        {
            string writePath = target.WritePath;

            if (string.IsNullOrEmpty(writePath))
            {
                target.EndAutoUpdate();
                return;
            }

            m_FileListName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cFileListTxt);
            m_VersionName  = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cVersionTxt);
            if (!File.Exists(m_FileListName))
            {
                CopyFileList();
            }
            else
            {
                if (!File.Exists(m_VersionName))
                {
                    CopyVersion();
                }
                else
                {
                    ToNextState();
                }
            }
        }
Ejemplo n.º 2
0
        public override void Enter(AutoUpdateMgr target)
        {
            string ver = target.CurrServeResrVersion;

            if (string.IsNullOrEmpty(ver))
            {
                target.EndAutoUpdate();
                return;
            }

            string writePath = target.WritePath;

            if (string.IsNullOrEmpty(writePath))
            {
                target.EndAutoUpdate();
                return;
            }

            target.TotalDownM = 0;
            target.CurDownM   = 0;
            DoGetServerFileList();
        }
Ejemplo n.º 3
0
        public override void Enter(AutoUpdateMgr target)
        {
            string writePath = target.WritePath;

            if (string.IsNullOrEmpty(writePath))
            {
                target.EndAutoUpdate();
                return;
            }

            m_FileListName = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cFileListTxt);
            m_VersionName  = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cVersionTxt);
            m_UpdateName   = string.Format("{0}/{1}", writePath, AutoUpdateMgr._cUpdateTxt);

            DoNextCopyVersion();
        }