Skip to content

Commit

Permalink
[checkrevision] Fix passing warden.dll a seed it doesn't like.
Browse files Browse the repository at this point in the history
* 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 5464d24
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions trunk/modBNCS.bas
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5464d24

Please sign in to comment.