aboutsummaryrefslogtreecommitdiff
path: root/src/tools/connection_patcher/Patterns
diff options
context:
space:
mode:
authorDJScias <DJScias@gmail.com>2015-06-30 16:05:50 +0200
committerCarbenium <carbenium@outlook.com>2015-07-03 22:15:52 +0200
commit7e906d7b1926394ba436315b7222b95f5473f79b (patch)
tree8a29dad02d272b37bc6da1a1e0cd29cecb25e5ae /src/tools/connection_patcher/Patterns
parentc24787f6665b5ea2b696bdfa7134a19ab5a3c331 (diff)
Tools/ConnectionPatcher: Add 'versions' file patching method
* This is necessary to allow connection to 6.1.2 after the 6.2.0 update released. Patching is version aware. * Link is hardcoded to a github page after suggestion from Aokromes, it is not tied to any server this way * The usage is optional. To patch use the "-e" option * OOP-ify the tool a bit Original implementation by DJScias Closes #14980
Diffstat (limited to 'src/tools/connection_patcher/Patterns')
-rw-r--r--src/tools/connection_patcher/Patterns/Common.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/connection_patcher/Patterns/Common.hpp b/src/tools/connection_patcher/Patterns/Common.hpp
index b5ff0343c65..8943e4fd1b1 100644
--- a/src/tools/connection_patcher/Patterns/Common.hpp
+++ b/src/tools/connection_patcher/Patterns/Common.hpp
@@ -29,6 +29,8 @@ namespace Connection_Patcher
{
static const std::vector<unsigned char> Portal() { return { '.', 'l', 'o', 'g', 'o', 'n', '.', 'b', 'a', 't', 't', 'l', 'e', '.', 'n', 'e', 't', 0x00 }; }
static const std::vector<unsigned char> Modulus() { return { 0x91, 0xD5, 0x9B, 0xB7, 0xD4, 0xE1, 0x83, 0xA5 }; }
+ static const std::vector<unsigned char> BinaryVersion() { return{ 0x3C, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3E }; }
+ static const std::vector<unsigned char> VersionsFile() { return { '%', 's', '.', 'p', 'a', 't', 'c', 'h', '.', 'b', 'a', 't', 't', 'l', 'e', '.', 'n', 'e', 't', ':', '1', '1', '1', '9', '/', '%', 's', '/', 'v', 'e', 'r', 's', 'i', 'o', 'n', 's' }; }
};
}
}