aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/connection_patcher/CMakeLists.txt24
-rw-r--r--src/tools/connection_patcher/Patterns/Windows.hpp2
2 files changed, 6 insertions, 20 deletions
diff --git a/src/tools/connection_patcher/CMakeLists.txt b/src/tools/connection_patcher/CMakeLists.txt
index 203a9b28415..94739370633 100644
--- a/src/tools/connection_patcher/CMakeLists.txt
+++ b/src/tools/connection_patcher/CMakeLists.txt
@@ -8,29 +8,15 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-set(HEADER_FILES
- Helper.hpp
- Patcher.hpp
- Constants/BinaryTypes.hpp
- Patches/Common.hpp
- Patches/Mac.hpp
- Patches/Windows.hpp
- Patterns/Common.hpp
- Patterns/Mac.hpp
- Patterns/Windows.hpp
-)
-
-set(SRC_FILES
- Helper.cpp
- Patcher.cpp
- Program.cpp
-)
+CollectSourceFiles(${CMAKE_CURRENT_SOURCE_DIR} PRIVATE_SOURCES)
if (WIN32)
- list(APPEND SRC_FILES ${sources_windows})
+ list(APPEND PRIVATE_SOURCES ${sources_windows})
endif()
-add_executable(connection_patcher ${HEADER_FILES} ${SRC_FILES})
+GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
+
+add_executable(connection_patcher ${PRIVATE_SOURCES})
target_link_libraries(connection_patcher
PUBLIC
diff --git a/src/tools/connection_patcher/Patterns/Windows.hpp b/src/tools/connection_patcher/Patterns/Windows.hpp
index 3c5db972de8..148914e134c 100644
--- a/src/tools/connection_patcher/Patterns/Windows.hpp
+++ b/src/tools/connection_patcher/Patterns/Windows.hpp
@@ -35,7 +35,7 @@ namespace Connection_Patcher
struct x64
{
- static const std::vector<unsigned char> CertBundleCASCLocalFile() { return{ 0x45, 0x33, 0xC9, 0x48, 0x89, 0x9C, 0x24, 0xF0, 0x01 }; }
+ static const std::vector<unsigned char> CertBundleCASCLocalFile() { return{ 0x45, 0x33, 0xC9, 0x48, 0x89, 0x9C, 0x24, 0x90, 0x02 }; }
static const std::vector<unsigned char> CertBundleSignatureCheck() { return{ 0x75, 0x0B, 0x48, 0xFF, 0xC7, 0x48, 0x83, 0xFF, 0x02 }; }
};
};