* Add ReHLDS API files and its dependencies Note: This has been stolen from ReAPI AMXX module and modified/adjusted to match AMXX existing includes and to provide as less dependencies as possible as well * Add the necessary files to get ReHLDS interface * Split SV_DropClient into pre/post code * Init ReHLDS API and add SV_DropClient hook * Add Cvar_DirectSet hook and adjust code with helpers Note: we don't need to split code here. This is pretty much the naive and straight way, but fairly enough for our case. If it happens we got a lot more hooks, we may consider to use some class to manage better the things. * Move platform and interface stuff in their own files in public directory * Make sure to init cvar stuff after ReHLDS * Add ReGameDLL API files and its dependencies in cstrike module * Init ReHLDS in cstrike module and adjust code Note: About cs_uset_set_model(). ReHLDS API doesn't offer a way to know directly the precached models, so instead of looping through all the ressources, the models list is saved one time at map change into a hashmap. * Init ReGameDLL and adjust code * Fix linux compilation * Init ReGameDLL in fakemeta module and adjust code * Rename /reapi directory to /resdk to avoid confusion * Retrieve gamerules pointer through InstallGameRules in fakemeta module * Retrieve gamerules pointer through InstallGameRules in cstrike module Note: actually gamerules is not used if regamedll is enabled, but it could be used in future natives. * Fix a typo when ReGameDLL is not enabled * Fix missing interface check for ReHLDS. I'm pretty sure I was checking at the very first since I worked first on vanilla version of engine, looks like change has been lost.
		
			
				
	
	
		
			147 lines
		
	
	
		
			8.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			147 lines
		
	
	
		
			8.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="utf-8"?>
 | 
						|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
						|
  <ItemGroup Label="ProjectConfigurations">
 | 
						|
    <ProjectConfiguration Include="Debug|Win32">
 | 
						|
      <Configuration>Debug</Configuration>
 | 
						|
      <Platform>Win32</Platform>
 | 
						|
    </ProjectConfiguration>
 | 
						|
    <ProjectConfiguration Include="Release|Win32">
 | 
						|
      <Configuration>Release</Configuration>
 | 
						|
      <Platform>Win32</Platform>
 | 
						|
    </ProjectConfiguration>
 | 
						|
  </ItemGroup>
 | 
						|
  <PropertyGroup Label="Globals">
 | 
						|
    <ProjectGuid>{5E393C37-22F2-4CA2-9022-6400DC582447}</ProjectGuid>
 | 
						|
    <RootNamespace>fakemeta</RootNamespace>
 | 
						|
    <Keyword>Win32Proj</Keyword>
 | 
						|
  </PropertyGroup>
 | 
						|
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
 | 
						|
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
 | 
						|
    <ConfigurationType>DynamicLibrary</ConfigurationType>
 | 
						|
    <CharacterSet>MultiByte</CharacterSet>
 | 
						|
    <PlatformToolset>v120_xp</PlatformToolset>
 | 
						|
  </PropertyGroup>
 | 
						|
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
 | 
						|
    <ConfigurationType>DynamicLibrary</ConfigurationType>
 | 
						|
    <CharacterSet>MultiByte</CharacterSet>
 | 
						|
    <PlatformToolset>v120_xp</PlatformToolset>
 | 
						|
  </PropertyGroup>
 | 
						|
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
 | 
						|
  <ImportGroup Label="ExtensionSettings">
 | 
						|
  </ImportGroup>
 | 
						|
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
 | 
						|
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
 | 
						|
    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
 | 
						|
  </ImportGroup>
 | 
						|
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
 | 
						|
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
 | 
						|
    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
 | 
						|
  </ImportGroup>
 | 
						|
  <PropertyGroup Label="UserMacros" />
 | 
						|
  <PropertyGroup>
 | 
						|
    <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
 | 
						|
    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
 | 
						|
    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
 | 
						|
    <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
 | 
						|
    <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
 | 
						|
    <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
 | 
						|
    <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
 | 
						|
    <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
 | 
						|
    <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
 | 
						|
    <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectName)_amxx</TargetName>
 | 
						|
    <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectName)_amxx</TargetName>
 | 
						|
  </PropertyGroup>
 | 
						|
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
 | 
						|
    <ClCompile>
 | 
						|
      <Optimization>Disabled</Optimization>
 | 
						|
      <AdditionalIncludeDirectories>..\;..\..\..\public;..\..\..\public\sdk;..\..\..\public\amtl;..\..\third_party;..\..\third_party\hashing;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 | 
						|
      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;FAKEMETA_EXPORTS;HAVE_STDINT_H;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
						|
      <MinimalRebuild>true</MinimalRebuild>
 | 
						|
      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
 | 
						|
      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
 | 
						|
      <RuntimeTypeInfo>false</RuntimeTypeInfo>
 | 
						|
      <PrecompiledHeader>
 | 
						|
      </PrecompiledHeader>
 | 
						|
      <WarningLevel>Level3</WarningLevel>
 | 
						|
      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
 | 
						|
    </ClCompile>
 | 
						|
    <Link>
 | 
						|
      <GenerateDebugInformation>true</GenerateDebugInformation>
 | 
						|
      <ProgramDatabaseFile>$(OutDir)fakemeta.pdb</ProgramDatabaseFile>
 | 
						|
      <SubSystem>Windows</SubSystem>
 | 
						|
      <ImportLibrary>$(OutDir)fakemeta.lib</ImportLibrary>
 | 
						|
      <TargetMachine>MachineX86</TargetMachine>
 | 
						|
      <IgnoreSpecificDefaultLibraries>LIBCMT;</IgnoreSpecificDefaultLibraries>
 | 
						|
      <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
 | 
						|
    </Link>
 | 
						|
  </ItemDefinitionGroup>
 | 
						|
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
 | 
						|
    <ClCompile>
 | 
						|
      <AdditionalIncludeDirectories>..\;..\..\..\public;..\..\..\public\sdk;..\..\..\public\amtl;..\..\third_party;..\..\third_party\hashing;$(METAMOD)\metamod;$(HLSDK)\common;$(HLSDK)\engine;$(HLSDK)\dlls;$(HLSDK)\pm_shared;$(HLSDK)\public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 | 
						|
      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;FAKEMETA_EXPORTS;HAVE_STDINT_H;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 | 
						|
      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
 | 
						|
      <RuntimeTypeInfo>false</RuntimeTypeInfo>
 | 
						|
      <PrecompiledHeader>
 | 
						|
      </PrecompiledHeader>
 | 
						|
      <WarningLevel>Level3</WarningLevel>
 | 
						|
      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
 | 
						|
    </ClCompile>
 | 
						|
    <Link>
 | 
						|
      <GenerateDebugInformation>true</GenerateDebugInformation>
 | 
						|
      <SubSystem>Windows</SubSystem>
 | 
						|
      <OptimizeReferences>true</OptimizeReferences>
 | 
						|
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
 | 
						|
      <ImportLibrary>$(OutDir)fakemeta.lib</ImportLibrary>
 | 
						|
      <TargetMachine>MachineX86</TargetMachine>
 | 
						|
    </Link>
 | 
						|
  </ItemDefinitionGroup>
 | 
						|
  <ItemGroup>
 | 
						|
    <ClCompile Include="..\..\..\public\memtools\MemoryUtils.cpp" />
 | 
						|
    <ClCompile Include="..\..\..\public\resdk\mod_regamedll_api.cpp" />
 | 
						|
    <ClCompile Include="..\fakemeta_amxx.cpp" />
 | 
						|
    <ClCompile Include="..\fm_tr.cpp" />
 | 
						|
    <ClCompile Include="..\fm_tr2.cpp" />
 | 
						|
    <ClCompile Include="..\misc.cpp" />
 | 
						|
    <ClCompile Include="..\pdata.cpp" />
 | 
						|
    <ClCompile Include="..\dllfunc.cpp" />
 | 
						|
    <ClCompile Include="..\engfunc.cpp" />
 | 
						|
    <ClCompile Include="..\pdata_entities.cpp" />
 | 
						|
    <ClCompile Include="..\pdata_gamerules.cpp" />
 | 
						|
    <ClCompile Include="..\pev.cpp" />
 | 
						|
    <ClCompile Include="..\forward.cpp" />
 | 
						|
    <ClCompile Include="..\glb.cpp" />
 | 
						|
    <ClCompile Include="..\..\..\public\sdk\amxxmodule.cpp" />
 | 
						|
  </ItemGroup>
 | 
						|
  <ItemGroup>
 | 
						|
    <ClInclude Include="..\..\..\public\HLTypeConversion.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\memtools\MemoryUtils.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\resdk\common\hookchains.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\resdk\cstrike\regamedll_api.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\resdk\cstrike\regamedll_const.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\resdk\cstrike\regamedll_interfaces.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\resdk\mod_regamedll_api.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\resdk\mod_rehlds_api.h" />
 | 
						|
    <ClInclude Include="..\fakemeta_amxx.h" />
 | 
						|
    <ClInclude Include="..\fm_tr.h" />
 | 
						|
    <ClInclude Include="..\dllfunc.h" />
 | 
						|
    <ClInclude Include="..\engfunc.h" />
 | 
						|
    <CustomBuildStep Include="pev.h" />
 | 
						|
    <ClInclude Include="..\forward.h" />
 | 
						|
    <ClInclude Include="..\forwardmacros.h" />
 | 
						|
    <ClInclude Include="..\glb.h" />
 | 
						|
    <ClInclude Include="..\moduleconfig.h" />
 | 
						|
    <ClInclude Include="..\pdata_shared.h" />
 | 
						|
    <ClInclude Include="..\sdk\CString.h" />
 | 
						|
    <ClInclude Include="..\sdk\CVector.h" />
 | 
						|
    <ClInclude Include="..\..\..\public\sdk\amxxmodule.h" />
 | 
						|
  </ItemGroup>
 | 
						|
  <ItemGroup>
 | 
						|
    <None Include="..\..\..\plugins\include\fakemeta.inc" />
 | 
						|
    <None Include="..\..\..\plugins\include\fakemeta_const.inc" />
 | 
						|
    <None Include="..\..\..\plugins\include\fakemeta_stocks.inc" />
 | 
						|
    <None Include="..\..\..\plugins\include\hlsdk_const.inc" />
 | 
						|
  </ItemGroup>
 | 
						|
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 | 
						|
  <ImportGroup Label="ExtensionTargets">
 | 
						|
  </ImportGroup>
 | 
						|
</Project> |