From e43444738ca2bb8ef8a09b040ceccd5de169edb7 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 31 Jan 2016 21:27:43 +0100 Subject: [PATCH] Stuff seems to take years to compile on release :/ Might wanna switch to openssl, crypto++ or some other rsa lib. --- premake5.lua | 4 ++-- src/Components/Modules/Node.cpp | 2 -- src/Main.cpp | 7 +++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/premake5.lua b/premake5.lua index 6984a323..190629fa 100644 --- a/premake5.lua +++ b/premake5.lua @@ -73,7 +73,7 @@ workspace "iw4x" toolset "msc-140" configuration "windows" - defines {"_WINDOWS"} + defines { "_WINDOWS" } configuration "Release*" defines { "NDEBUG" } @@ -81,7 +81,7 @@ workspace "iw4x" optimize "Full" configuration "Debug*" - defines { "DEBUG" } + defines { "DEBUG", "_DEBUG" } flags { "MultiProcessorCompile", "Symbols", "No64BitChecks" } optimize "Debug" diff --git a/src/Components/Modules/Node.cpp b/src/Components/Modules/Node.cpp index 506a48ef..e6e521d9 100644 --- a/src/Components/Modules/Node.cpp +++ b/src/Components/Modules/Node.cpp @@ -239,8 +239,6 @@ namespace Components //#ifdef USE_NODE_STUFF Assert_Size(Node::AddressEntry, 6); - ltc_mp = tfm_desc; - Dvar::OnInit([] () { Node::Dedis.clear(); diff --git a/src/Main.cpp b/src/Main.cpp index 145d9189..b0bcb7dd 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -14,6 +14,11 @@ namespace Main { Components::Loader::Uninitialize(); } + + void PreInit() + { + ltc_mp = tfm_desc; + } } BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) @@ -41,6 +46,8 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser } })->Install(); + + Main::PreInit(); } else if (ul_reason_for_call == DLL_PROCESS_DETACH) {