diff options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/connection_patcher/Patches/Common.hpp | 5 | ||||
| -rw-r--r-- | src/tools/connection_patcher/Patterns/Common.hpp | 5 | ||||
| -rw-r--r-- | src/tools/connection_patcher/Program.cpp | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/connection_patcher/Patches/Common.hpp b/src/tools/connection_patcher/Patches/Common.hpp index e2c96c4c7e2..5bf6464249a 100644 --- a/src/tools/connection_patcher/Patches/Common.hpp +++ b/src/tools/connection_patcher/Patches/Common.hpp @@ -68,6 +68,11 @@ R"({ ] }NGISerting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature_inserting_dummy_signature)"; } + static std::vector<unsigned char> LauncherLoginParametersLocation() + { + char const path[] = R"(Software\TrinityCore Developers\Battle.net\Launch Options\)"; + return std::vector<unsigned char>(std::begin(path), std::end(path)); + } }; } } diff --git a/src/tools/connection_patcher/Patterns/Common.hpp b/src/tools/connection_patcher/Patterns/Common.hpp index a8cf0ca7934..6144a01f642 100644 --- a/src/tools/connection_patcher/Patterns/Common.hpp +++ b/src/tools/connection_patcher/Patterns/Common.hpp @@ -32,6 +32,11 @@ namespace Connection_Patcher 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' }; } static const std::vector<unsigned char> CertFileName() { return { 'c', 'a', '_', 'b', 'u', 'n', 'd', 'l', 'e', '.', 't', 'x', 't', '.', 's', 'i', 'g', 'n', 'e', 'd', 0x00 }; } + static const std::vector<unsigned char> LauncherLoginParametersLocation() + { + char const path[] = R"(Software\Blizzard Entertainment\Battle.net\Launch Options\)"; + return std::vector<unsigned char>(std::begin(path), std::end(path)); + } }; } } diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp index 949365b54ee..a5c22cdfc24 100644 --- a/src/tools/connection_patcher/Program.cpp +++ b/src/tools/connection_patcher/Program.cpp @@ -79,6 +79,10 @@ namespace Connection_Patcher std::vector<unsigned char> verVec(verPatch.begin(), verPatch.end()); patcher->Patch(verVec, Patterns::Common::VersionsFile()); + std::cout << "patching launcher login parameters location\n"; + // change registry/CFPreferences path + patcher->Patch(Patches::Common::LauncherLoginParametersLocation(), Patterns::Common::LauncherLoginParametersLocation()); + patcher->Finish(output); std::cout << "Patching done.\n"; |
