What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

如何取消专业模式运行时自动升级?

shopbot

New Member
Joined
Jun 13, 2013
Messages
61
身在天朝,最近全面屏蔽google的服务,所以每次升级多半都是失败,偶尔链接成功,升级会发生升级不完整的情况,导致下一次HB启动找不到专业模式的情况.:(

所以我想索性就不要自动升级了...
 
professionalbuddy 下面有个svn文件 和SvnBase 文件你尝试一下删除这两个文件还能不能运行, 因为每个文件都是相互依存的 我不确定删除后你可以继续使用。 具体你可以再作者的帖子下面跟帖问一下
 
因为这个模式我不是很了解。 也没有看过他的源代码(就算看也不知道看哪里,上万行的代码不好找),所以没办法帮到你。 抱歉。
 
因为国内网络无法连接google的相关网站,所以会导致升级不成功,或者无法连接,但googlecode的话偶尔是可以连接上的,所以会造成你上面的情况,你可以先将Bots\Professionbuddy\Updater.cs这个备份,然后可以将下面代码改一下应该就不会检查升级了
Code:
try
            {
                Professionbuddy.Log("Checking for new version");
                int remoteRev = GetRevision();
                if (GlobalPBSettings.Instance.CurrentRevision != remoteRev &&
                    Professionbuddy.Svn.Revision < remoteRev)
                {
                    Professionbuddy.Log("A new version was found.Downloading Update");
                    DownloadFilesFromSvn(new WebClient(), PbSvnUrl);
                    Professionbuddy.Log("Download complete.");
                    GlobalPBSettings.Instance.CurrentRevision = remoteRev;
                    GlobalPBSettings.Instance.Save();
                    Logging.Write(Colors.DodgerBlue, "************* Change Log ****************");
                    Logging.Write(Colors.SkyBlue, GetChangeLog(remoteRev));
                    Logging.Write(Colors.DodgerBlue, "*****************************************");
                    Logging.Write(Colors.Red, "A new version of ProfessionBuddy was installed. Please restart Honorbuddy");
                }
                else
                {
                    Professionbuddy.Log("No updates found");
                }
            }
改成
Code:
try
            {
                    Professionbuddy.Log("No updates found");
            }
 
Back
Top