From 39af321b544abc421d883e2e57635693548b73b6 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 30 Apr 2023 21:48:31 +0200 Subject: [PATCH] Enable LZHAM fail exceptions --- r5dev/core/dllmain.cpp | 1 + r5dev/core/stdafx.h | 1 + 2 files changed, 2 insertions(+) diff --git a/r5dev/core/dllmain.cpp b/r5dev/core/dllmain.cpp index 1f54665a..dd8c595c 100644 --- a/r5dev/core/dllmain.cpp +++ b/r5dev/core/dllmain.cpp @@ -36,6 +36,7 @@ void SDK_Init() Console_Init(); #endif // !DEDICATED + lzham_enable_fail_exceptions(true); curl_global_init(CURL_GLOBAL_ALL); SpdLog_Init(); Winsock_Init(); // Initialize Winsock. diff --git a/r5dev/core/stdafx.h b/r5dev/core/stdafx.h index dd36bc31..6a224c94 100644 --- a/r5dev/core/stdafx.h +++ b/r5dev/core/stdafx.h @@ -83,6 +83,7 @@ #endif // !DEDICATED && !SDKLAUNCHER && !NETCONSOLE && !PLUGINSDK #if !defined(SDKLAUNCHER) && !defined (NETCONSOLE) && !defined(PLUGINSDK) +#include "thirdparty/lzham/include/lzham_assert.h" #include "thirdparty/lzham/include/lzham_types.h" #include "thirdparty/lzham/include/lzham.h" #endif // !SDKLAUNCHER && !NETCONSOLE && !PLUGINSDK