From b1cb7be5af489338f8cf9c4999aec329366d74a7 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 29 Dec 2015 12:52:23 -0500 Subject: [PATCH] Copy other Interfaces lib fixes from CS:GO branch. --- interfaces/interfaces.cpp | 5 ++- interfaces/interfaces.vcxproj | 71 +++++++---------------------------- 2 files changed, 18 insertions(+), 58 deletions(-) diff --git a/interfaces/interfaces.cpp b/interfaces/interfaces.cpp index 412a6fa9..b0b072fb 100644 --- a/interfaces/interfaces.cpp +++ b/interfaces/interfaces.cpp @@ -137,7 +137,7 @@ static int s_nRegistrationCount; static ConnectionRegistration_t s_pConnectionRegistration[NUM_INTERFACES + 1]; -void ReconnectInterface(CreateInterfaceFn factory, char const *pInterfaceName, void **w); +void ReconnectInterface(CreateInterfaceFn factory, char const *pInterfaceName, void **ppGlobal); void ConnectInterfaces(CreateInterfaceFn *pFactoryList, int nFactoryCount) { @@ -207,7 +207,10 @@ void ReconnectInterface(CreateInterfaceFn factory, char const *pInterfaceName, v for (int i = 0; i < s_nRegistrationCount; i++) { if (s_pConnectionRegistration[i].m_ppGlobalStorage == ppGlobal) + { got = true; + break; + } } if ((s_nRegistrationCount <= 0 || !got) && *ppGlobal) diff --git a/interfaces/interfaces.vcxproj b/interfaces/interfaces.vcxproj index 7301fef8..5f1dd9c8 100644 --- a/interfaces/interfaces.vcxproj +++ b/interfaces/interfaces.vcxproj @@ -35,13 +35,7 @@ <_ProjectFileVersion>10.0.40219.1 ..\lib\public\ - true - true - true ..\lib\public\ - true - true - true AllRules.ruleset @@ -57,34 +51,20 @@ Disabled ..\public;..\public\tier0;..\public\tier1;..\public\interfaces;%(AdditionalIncludeDirectories) - _HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;WIN32;_WIN32;COMPILER_MSVC;COMPILER_MSVC32;_DEBUG;DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;TIER1_STATIC_LIB;%(PreprocessorDefinitions) + _HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;WIN32;_WIN32;COMPILER_MSVC;COMPILER_MSVC32;_DEBUG;DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) true true - - + false EnableFastChecks MultiThreadedDebug false Fast - true - true - true - false - false - $(IntDir) - $(IntDir) - $(IntDir) - false - $(IntDir) - EditAndContinue - CompileAsCpp - Prompt Level3 @@ -92,17 +72,13 @@ - false - Rpcrt4.lib;%(AdditionalDependencies) - true + + true - - true - $(OutDir)tier1.bsc - + @@ -110,56 +86,37 @@ - MaxSpeed - AnySuitable - true - Speed ..\public;..\public\tier0;..\public\tier1;..\public\interfaces;%(AdditionalIncludeDirectories) - _HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;WIN32;_WIN32;COMPILER_MSVC;COMPILER_MSVC32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;TIER1_STATIC_LIB;%(PreprocessorDefinitions) + _HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;WIN32;_WIN32;COMPILER_MSVC;COMPILER_MSVC32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) true - - + false MultiThreaded false true - Fast - true - true - true - false - false - $(IntDir) - $(IntDir) - $(IntDir) - false - $(IntDir) - OldStyle - CompileAsCpp - Prompt Level3 + Fast + AnySuitable + true + Speed - false - Rpcrt4.lib;%(AdditionalDependencies) - true + + true - - true - $(OutDir)tier1.bsc - +