From e230fb8320cedede8c992ba7148994f372e16c0a Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 16 Mar 2024 01:27:57 +0100 Subject: [PATCH] Protobuf: check version on startup Properly check as per documentation. --- src/core/dllmain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/dllmain.cpp b/src/core/dllmain.cpp index b4a772e8..f9efc6e2 100644 --- a/src/core/dllmain.cpp +++ b/src/core/dllmain.cpp @@ -15,6 +15,7 @@ #include "windows/system.h" #include "mathlib/mathlib.h" #include "launcher/launcher.h" +#include "protobuf/stubs/common.h" #ifndef DEDICATED #define SDK_DEFAULT_CFG "cfg/system/startup_default.cfg" @@ -102,6 +103,7 @@ void SDK_Init() Input_Init(); #endif // !DEDICATED + GOOGLE_PROTOBUF_VERIFY_VERSION; curl_global_init(CURL_GLOBAL_ALL); lzham_enable_fail_exceptions(true);