diff --git a/src/tools/connection_patcher/Patches/Mac.hpp b/src/tools/connection_patcher/Patches/Mac.hpp index d05dc0691c0..70571ae3d25 100644 --- a/src/tools/connection_patcher/Patches/Mac.hpp +++ b/src/tools/connection_patcher/Patches/Mac.hpp @@ -27,13 +27,22 @@ namespace Connection_Patcher { namespace Mac { - struct x64 + struct x86 { - static const std::vector BNet() { return { 0xB8, 0xD5, 0xF8, 0x7F, 0x82, 0x89, 0x47, 0x0C, 0x5D, 0xC3, 0x90, 0x90, 0x90 }; } - static const std::vector Portal() { return { }; } + static const std::vector BNet() { return { }; } + static const std::vector Portal() { return { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } static const std::vector Connect() { return { }; } static const std::vector Password() { return { 0x0F, 0x85 }; } - static const std::vector Signature() { return { 0x45, 0x31, 0xED, 0x4D, 0x89, 0xFC, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0xEB }; } + static const std::vector Signature() { return { }; } + }; + + struct x64 + { + static const std::vector BNet() { return { }; } + static const std::vector Portal() { return { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } + static const std::vector Connect() { return { }; } + static const std::vector Password() { return { 0x0F, 0x85 }; } + static const std::vector Signature() { return { }; } }; }; } diff --git a/src/tools/connection_patcher/Patches/Windows.hpp b/src/tools/connection_patcher/Patches/Windows.hpp index 1dfc331e5b1..a7d5d1edb6d 100644 --- a/src/tools/connection_patcher/Patches/Windows.hpp +++ b/src/tools/connection_patcher/Patches/Windows.hpp @@ -29,20 +29,20 @@ namespace Connection_Patcher { struct x86 { - static const std::vector BNet() { return { 0xC7, 0x40, 0x0C, 0xD5, 0xF8, 0x7F, 0x82 }; } - static const std::vector Portal() { return { }; } - static const std::vector Connect() { return { 0xEB }; } + static const std::vector BNet() { return { 0x89, 0x48, 0x08, 0xC7, 0x40, 0x0C, 0xD5, 0xF8, 0x7F, 0x82, 0x90 }; } + static const std::vector Portal() { return { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } + static const std::vector Connect() { return { }; } static const std::vector Password() { return { 0x75 }; } - static const std::vector Signature() { return { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0xEB }; } + static const std::vector Signature() { return { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0xE9 }; } }; struct x64 { - static const std::vector BNet() { return { 0xB8, 0xD5, 0xF8, 0x7F, 0x82, 0x89, 0x41, 0x0C, 0x48, 0x8B, 0xC1, 0xC3 }; } + static const std::vector BNet() { return { }; } static const std::vector Portal() { return { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } - static const std::vector Connect() { return { 0xEB }; } + static const std::vector Connect() { return { }; } static const std::vector Password() { return { 0x75 }; } - static const std::vector Signature() { return { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0xE9 }; } + static const std::vector Signature() { return { }; } }; }; } diff --git a/src/tools/connection_patcher/Patterns/Mac.hpp b/src/tools/connection_patcher/Patterns/Mac.hpp index e51cbaa265e..9850a79182e 100644 --- a/src/tools/connection_patcher/Patterns/Mac.hpp +++ b/src/tools/connection_patcher/Patterns/Mac.hpp @@ -27,13 +27,22 @@ namespace Connection_Patcher { namespace Mac { + struct x86 + { + static const std::vector BNet() { return { }; } + static const std::vector Portal() { return { 0x2E, 0x6C, 0x6F, 0x67, 0x6F, 0x6E, 0x2E, 0x62, 0x61, 0x74, 0x74, 0x6C, 0x65, 0x2E, 0x6E, 0x65, 0x74, 0x00 }; } + static const std::vector Connect() { return { }; } + static const std::vector Password() { return { }; } + static const std::vector Signature() { return { }; } + }; + struct x64 { - static const std::vector BNet() { return { 0x8B, 0x06, 0x89, 0x47, 0x0C, 0x5D, 0xC3 }; } - static const std::vector Portal() { return { }; } + static const std::vector BNet() { return { }; } + static const std::vector Portal() { return { 0x2E, 0x6C, 0x6F, 0x67, 0x6F, 0x6E, 0x2E, 0x62, 0x61, 0x74, 0x74, 0x6C, 0x65, 0x2E, 0x6E, 0x65, 0x74, 0x00 }; } static const std::vector Connect() { return { }; } - static const std::vector Password() { return { 0x0F, 0x84, 0x00, 0xFF, 0xFF, 0xFF, 0x49, 0x8B, 0x45, 0x00, 0xB9, 0x40 }; } - static const std::vector Signature() { return { 0xE8, 0x00, 0x00, 0x00, 0x00, 0x45, 0x31, 0xED, 0x4D, 0x89, 0xFC, 0x84, 0xC0, 0x75 }; } + static const std::vector Password() { return { }; } + static const std::vector Signature() { return { }; } }; }; } diff --git a/src/tools/connection_patcher/Patterns/Windows.hpp b/src/tools/connection_patcher/Patterns/Windows.hpp index 1a76be5ae10..fd5020f8b9b 100644 --- a/src/tools/connection_patcher/Patterns/Windows.hpp +++ b/src/tools/connection_patcher/Patterns/Windows.hpp @@ -29,20 +29,20 @@ namespace Connection_Patcher { struct x86 { - static const std::vector BNet() { return { 0x8B, 0x75, 0x08, 0x8D, 0x78, 0x0C }; } - static const std::vector Portal() { return { }; } - static const std::vector Connect() { return { 0x74, 0x33, 0x6A, 0x04, 0xFF, 0x75, 0xF8 }; } - static const std::vector Password() { return { 0x74, 0x89, 0x8B, 0x16, 0x8B, 0x42, 0x04 }; } - static const std::vector Signature() { return { 0xE8, 0x00, 0x00, 0x00, 0x00, 0x84, 0xC0, 0x75, 0x5F, 0x33, 0xC0 }; } + static const std::vector BNet() { return { }; } + static const std::vector Portal() { return { 0x2E, 0x6C, 0x6F, 0x67, 0x6F, 0x6E, 0x2E, 0x62, 0x61, 0x74, 0x74, 0x6C, 0x65, 0x2E, 0x6E, 0x65, 0x74, 0x00 }; } + static const std::vector Connect() { return { }; } + static const std::vector Password() { return { }; } + static const std::vector Signature() { return { }; } }; struct x64 { - static const std::vector BNet() { return { 0x8B, 0x02, 0x89, 0x41, 0x0C, 0x48, 0x8B, 0xC1, 0xC3 }; } + static const std::vector BNet() { return { }; } static const std::vector Portal() { return { 0x2E, 0x6C, 0x6F, 0x67, 0x6F, 0x6E, 0x2E, 0x62, 0x61, 0x74, 0x74, 0x6C, 0x65, 0x2E, 0x6E, 0x65, 0x74, 0x00 }; } - static const std::vector Connect() { return { 0x74, 0x2C, 0x48, 0x8D, 0x4C, 0x24, 0x78 }; } - static const std::vector Password() { return { 0x74, 0x84, 0x48, 0x8B, 0x03 }; } - static const std::vector Signature() { return { 0xE8, 0x00, 0x00, 0x00, 0x00, 0x84, 0xC0, 0x0F, 0x85, 0x88, 0x00, 0x00, 0x00, 0x45, 0x33, 0xC0 }; } + static const std::vector Connect() { return { }; } + static const std::vector Password() { return { }; } + static const std::vector Signature() { return { }; } }; }; }