~shimon/thd3d8mitigation

443e65b3a859b7ee0ecc0cdf863cf4d65df7359b — Itoh Shimon 1 year, 1 month ago 12cf4b3
改名。
8 files changed, 24 insertions(+), 23 deletions(-)

M extradatatable.cpp
M thd3d8fix.vcxproj.filters
R thd3d8fix.c => thd3d8mitigation.c
R thd3d8fix.def => thd3d8mitigation.def
R thd3d8fix.h => thd3d8mitigation.h
R thd3d8fix.sln => thd3d8mitigation.sln
R thd3d8fix.vcxproj => thd3d8mitigation.vcxproj
M util.c
M extradatatable.cpp => extradatatable.cpp +1 -1
@@ 4,7 4,7 @@
#include <stdexcept>
#include <unordered_map>

#include "thd3d8fix.h"
#include "thd3d8mitigation.h"

// XXX TODO exception safety


M thd3d8fix.vcxproj.filters => thd3d8fix.vcxproj.filters +5 -5
@@ 15,23 15,23 @@
    </Filter>
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="thd3d8fix.c">
      <Filter>ソース ファイル</Filter>
    </ClCompile>
    <ClCompile Include="util.c">
      <Filter>ソース ファイル</Filter>
    </ClCompile>
    <ClCompile Include="extradatatable.cpp">
      <Filter>ソース ファイル</Filter>
    </ClCompile>
    <ClCompile Include="thd3d8mitigation.c">
      <Filter>ソース ファイル</Filter>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>
    <None Include="thd3d8fix.def">
    <None Include="thd3d8mitigation.def">
      <Filter>ソース ファイル</Filter>
    </None>
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="thd3d8fix.h">
    <ClInclude Include="thd3d8mitigation.h">
      <Filter>ヘッダー ファイル</Filter>
    </ClInclude>
  </ItemGroup>

R thd3d8fix.c => thd3d8mitigation.c +2 -2
@@ 9,10 9,10 @@

#include <stdlib.h>

#include "thd3d8fix.h"
#include "thd3d8mitigation.h"

// Naming convention:
//   Thf*: thd3d8fix
//   Thf*: thd3d8mitigation
//   cs_*: Critical section
//   g_*: Global variable
//   *_t: Type identifier

R thd3d8fix.def => thd3d8mitigation.def +0 -0
R thd3d8fix.h => thd3d8mitigation.h +2 -2
@@ 14,7 14,7 @@ extern "C" {

#define THF_VERSION "0.1"

// thd3d8fix.c
// thd3d8mitigation.c

// type of Direct3DCreate8
typedef IDirect3D8* (WINAPI* Direct3DCreate8_t)(UINT);


@@ 58,7 58,7 @@ struct IDirect3DDevice8ExtraData {

// util.c

#define THF_LOG_PREFIX "[thd3d8fix]"
#define THF_LOG_PREFIX "[thd3d8mitigation]"

int myvasprintf(char**, const char*, va_list);
int myasprintf(char**, const char*, ...);

R thd3d8fix.sln => thd3d8mitigation.sln +1 -1
@@ 3,7 3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30330.147
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "thd3d8fix", "thd3d8fix.vcxproj", "{0B80C453-982B-40B6-B159-93697F7AFC86}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "thd3d8mitigation", "thd3d8mitigation.vcxproj", "{0B80C453-982B-40B6-B159-93697F7AFC86}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution

R thd3d8fix.vcxproj => thd3d8mitigation.vcxproj +12 -11
@@ 22,8 22,9 @@
    <VCProjectVersion>16.0</VCProjectVersion>
    <Keyword>Win32Proj</Keyword>
    <ProjectGuid>{0b80c453-982b-40b6-b159-93697f7afc86}</ProjectGuid>
    <RootNamespace>thd3d8fix</RootNamespace>
    <RootNamespace>thd3d8mitigation</RootNamespace>
    <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
    <ProjectName>thd3d8mitigation</ProjectName>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">


@@ 92,7 93,7 @@
    <ClCompile>
      <WarningLevel>Level3</WarningLevel>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>WIN32;_DEBUG;THD3D8FIX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PreprocessorDefinitions>WIN32;_DEBUG;THD3D8MITIGATION_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>


@@ 101,7 102,7 @@
      <SubSystem>Windows</SubSystem>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <EnableUAC>false</EnableUAC>
      <ModuleDefinitionFile>thd3d8fix.def</ModuleDefinitionFile>
      <ModuleDefinitionFile>thd3d8mitigation.def</ModuleDefinitionFile>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">


@@ 110,7 111,7 @@
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>WIN32;NDEBUG;THD3D8FIX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PreprocessorDefinitions>WIN32;NDEBUG;THD3D8MITIGATION_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>


@@ 121,14 122,14 @@
      <OptimizeReferences>true</OptimizeReferences>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <EnableUAC>false</EnableUAC>
      <ModuleDefinitionFile>thd3d8fix.def</ModuleDefinitionFile>
      <ModuleDefinitionFile>thd3d8mitigation.def</ModuleDefinitionFile>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <ClCompile>
      <WarningLevel>Level3</WarningLevel>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>_DEBUG;THD3D8FIX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PreprocessorDefinitions>_DEBUG;THD3D8MITIGATION_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <PrecompiledHeader>Use</PrecompiledHeader>
      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>


@@ 145,7 146,7 @@
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <SDLCheck>true</SDLCheck>
      <PreprocessorDefinitions>NDEBUG;THD3D8FIX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PreprocessorDefinitions>NDEBUG;THD3D8MITIGATION_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ConformanceMode>true</ConformanceMode>
      <PrecompiledHeader>Use</PrecompiledHeader>
      <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>


@@ 159,17 160,17 @@
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClCompile Include="thd3d8fix.c" />
    <ClCompile Include="thd3d8mitigation.c" />
    <ClCompile Include="util.c" />
    <ClCompile Include="extradatatable.cpp" />
  </ItemGroup>
  <ItemGroup>
    <None Include="thd3d8fix.def" />
    <None Include="thd3d8mitigation.def" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="thd3d8fix.h" />
    <ClInclude Include="thd3d8mitigation.h" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
</Project>
\ No newline at end of file
</Project>

M util.c => util.c +1 -1
@@ 1,4 1,4 @@
#include "thd3d8fix.h"
#include "thd3d8mitigation.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.h>