Skip to content
Permalink
Browse files

[checkrevision] Fix passing warden.dll a seed it doesn't like.

* This is a temporary measure, hopefully, so that Warden.dll does
  checkrevision on the seed "A=0 B=0 C=0 4 A=A+S C=C+A" which is
  missing two formulas.

  This seed is received if your version is outdated, as of
  W3 patch 1.27 and SC patch 1.18 which use the new
  Blizzard app-like updater.
  • Loading branch information...
nmbook committed Apr 23, 2017
1 parent 50705e9 commit 5464d24e14a927d945fc17933e4878b6783a5856
Showing with 10 additions and 0 deletions.
  1. +10 −0 trunk/modBNCS.bas
@@ -283,6 +283,11 @@ On Error GoTo ERROR_HANDLER:
ds.CRevSeed = .GetString
End With

If (StrComp(ds.CRevSeed, "A=0 B=0 C=0 4 A=A+S C=C+A", vbBinaryCompare) = 0) Then
' broken server default seed, proceed by making it "2" checks
ds.CRevSeed = "A=0 B=0 C=0 4 A=A+S B=B+C C=C+A A=A+B"
End If

Call frmChat.AddChat(RTBColors.InformationText, "[BNCS] Checking version...")
If (MDebug("all") Or MDebug("crev")) Then
frmChat.AddChat RTBColors.InformationText, StringFormat("CRev Name: {0}", ds.CRevFileName)
@@ -1622,6 +1627,11 @@ On Error GoTo ERROR_HANDLER:
ds.CRevSeed = pBuff.GetString
ds.ServerSig = pBuff.GetRaw(128)

If (StrComp(ds.CRevSeed, "A=0 B=0 C=0 4 A=A+S C=C+A", vbBinaryCompare) = 0) Then
' broken server default seed, proceed by making it "2" checks
ds.CRevSeed = "A=0 B=0 C=0 4 A=A+S B=B+C C=C+A A=A+B"
End If

Call frmChat.AddChat(RTBColors.InformationText, "[BNCS] Checking version...")

If (MDebug("all") Or MDebug("crev")) Then

0 comments on commit 5464d24

Please sign in to comment.
You can’t perform that action at this time.