diff --git a/DDraw/DDraw.vcxproj b/DDraw/DDraw.vcxproj index 28dc091..2a72068 100644 --- a/DDraw/DDraw.vcxproj +++ b/DDraw/DDraw.vcxproj @@ -1,79 +1,162 @@ - - + + + + Debug + Win32 + Master Win32 + + Release + Win32 + - {B695EC1B-7258-426A-81CF-9323C016ACFB} - ResSock - DDraw + 15.0 + {537CF8A1-86B9-49C7-8408-C70657543AF7} + DDraw + 7.0 + + DynamicLibrary + true + v141_xp + Unicode + + + DynamicLibrary + false + v141_xp + true + Unicode + DynamicLibrary false + v141_xp true Unicode - v120_xp + + + + + + + + + + - - ddraw - - - .dll - + + + + Level4 + Disabled + true + ..\SilentPatch;%(AdditionalIncludeDirectories) + _HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) + false + MultiThreadedDebug + NoExtensions + Fast + true + false + stdcpp17 + + + ddraw.def + Windows + + + copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto 3\ddraw.dll" +copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto Vice City\ddraw.dll" + + + + + Level4 + MaxSpeed + true + true + true + AnySuitable + Speed + true + ..\SilentPatch;%(AdditionalIncludeDirectories) + _HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) + true + false + MultiThreaded + NoExtensions + Fast + true + false + stdcpp17 + + + true + true + ddraw.def + Windows + + + copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto 3\ddraw.dll" +copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto Vice City\ddraw.dll" + + Level4 MaxSpeed true true - false + true AnySuitable Speed true - NDEBUG;%(PreprocessorDefinitions) - true - MultiThreaded ..\SilentPatch;%(AdditionalIncludeDirectories) - NoExtensions + _HAS_EXCEPTIONS=0;NDEBUG;%(PreprocessorDefinitions) + true false + MultiThreaded + NoExtensions + Fast + true false + stdcpp17 - false true true - true + ddraw.def Windows - DllMain@12 - ntdllp.lib;shlwapi.lib;%(AdditionalDependencies) - DDraw.def + false - copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto Vice City\ddraw.dll" -copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto 3\ddraw.dll" + copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto 3\ddraw.dll" +copy /y "$(TargetPath)" "D:\Steam\steamapps\common\Grand Theft Auto Vice City\ddraw.dll" - + - + diff --git a/DDraw/DDraw.vcxproj.filters b/DDraw/DDraw.vcxproj.filters index 02ef6f1..92dd8dc 100644 --- a/DDraw/DDraw.vcxproj.filters +++ b/DDraw/DDraw.vcxproj.filters @@ -7,7 +7,7 @@ {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd + h;hh;hpp;hxx;hm;inl;inc;xsd {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} diff --git a/DDraw/dllmain.cpp b/DDraw/dllmain.cpp index 01298d0..0d89180 100644 --- a/DDraw/dllmain.cpp +++ b/DDraw/dllmain.cpp @@ -6,9 +6,10 @@ #include #include #include -#define _MEMORY_NO_CRT #include "MemoryMgr.h" +#pragma comment(lib, "shlwapi.lib") + extern "C" HRESULT WINAPI DirectDrawCreateEx(GUID FAR *lpGUID, LPVOID *lplpDD, REFIID iid, IUnknown FAR *pUnkOuter) { static HRESULT (WINAPI *pDirectDrawCreateEx)(GUID FAR*, LPVOID*, REFIID, IUnknown FAR*); diff --git a/DDraw/ntdllp.lib b/DDraw/ntdllp.lib deleted file mode 100644 index 057be92..0000000 Binary files a/DDraw/ntdllp.lib and /dev/null differ diff --git a/SilentPatch.sln b/SilentPatch.sln index b177e59..ea88c25 100644 --- a/SilentPatch.sln +++ b/SilentPatch.sln @@ -1,16 +1,16 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26730.12 +VisualStudioVersion = 15.0.26730.15 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DDraw", "DDraw\DDraw.vcxproj", "{B695EC1B-7258-426A-81CF-9323C016ACFB}" -EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SilentPatchIII", "SilentPatchIII\SilentPatchIII.vcxproj", "{652975D8-60B0-48E4-A973-4F10BA54FFCB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SilentPatchSA", "SilentPatchSA\SilentPatchSA.vcxproj", "{D3E18BC0-A120-451D-A16A-F77072625D66}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SilentPatchVC", "SilentPatchVC\SilentPatchVC.vcxproj", "{374D4CB4-548A-4DA0-AB68-8EA356424626}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DDraw", "DDraw\DDraw.vcxproj", "{537CF8A1-86B9-49C7-8408-C70657543AF7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -18,30 +18,33 @@ Global Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B695EC1B-7258-426A-81CF-9323C016ACFB}.Debug|Win32.ActiveCfg = Master|Win32 - {B695EC1B-7258-426A-81CF-9323C016ACFB}.Debug|Win32.Build.0 = Master|Win32 - {B695EC1B-7258-426A-81CF-9323C016ACFB}.Master|Win32.ActiveCfg = Master|Win32 - {B695EC1B-7258-426A-81CF-9323C016ACFB}.Master|Win32.Build.0 = Master|Win32 - {B695EC1B-7258-426A-81CF-9323C016ACFB}.Release|Win32.ActiveCfg = Master|Win32 - {B695EC1B-7258-426A-81CF-9323C016ACFB}.Release|Win32.Build.0 = Master|Win32 {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Debug|Win32.ActiveCfg = Debug|Win32 {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Debug|Win32.Build.0 = Debug|Win32 + {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Debug|Win32.Deploy.0 = Debug|Win32 {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Master|Win32.ActiveCfg = Master|Win32 {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Master|Win32.Build.0 = Master|Win32 {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Release|Win32.ActiveCfg = Release|Win32 {652975D8-60B0-48E4-A973-4F10BA54FFCB}.Release|Win32.Build.0 = Release|Win32 {D3E18BC0-A120-451D-A16A-F77072625D66}.Debug|Win32.ActiveCfg = Debug|Win32 {D3E18BC0-A120-451D-A16A-F77072625D66}.Debug|Win32.Build.0 = Debug|Win32 + {D3E18BC0-A120-451D-A16A-F77072625D66}.Debug|Win32.Deploy.0 = Debug|Win32 {D3E18BC0-A120-451D-A16A-F77072625D66}.Master|Win32.ActiveCfg = Master|Win32 {D3E18BC0-A120-451D-A16A-F77072625D66}.Master|Win32.Build.0 = Master|Win32 {D3E18BC0-A120-451D-A16A-F77072625D66}.Release|Win32.ActiveCfg = Release|Win32 {D3E18BC0-A120-451D-A16A-F77072625D66}.Release|Win32.Build.0 = Release|Win32 {374D4CB4-548A-4DA0-AB68-8EA356424626}.Debug|Win32.ActiveCfg = Debug|Win32 {374D4CB4-548A-4DA0-AB68-8EA356424626}.Debug|Win32.Build.0 = Debug|Win32 + {374D4CB4-548A-4DA0-AB68-8EA356424626}.Debug|Win32.Deploy.0 = Debug|Win32 {374D4CB4-548A-4DA0-AB68-8EA356424626}.Master|Win32.ActiveCfg = Master|Win32 {374D4CB4-548A-4DA0-AB68-8EA356424626}.Master|Win32.Build.0 = Master|Win32 {374D4CB4-548A-4DA0-AB68-8EA356424626}.Release|Win32.ActiveCfg = Release|Win32 {374D4CB4-548A-4DA0-AB68-8EA356424626}.Release|Win32.Build.0 = Release|Win32 + {537CF8A1-86B9-49C7-8408-C70657543AF7}.Debug|Win32.ActiveCfg = Debug|Win32 + {537CF8A1-86B9-49C7-8408-C70657543AF7}.Debug|Win32.Build.0 = Debug|Win32 + {537CF8A1-86B9-49C7-8408-C70657543AF7}.Master|Win32.ActiveCfg = Master|Win32 + {537CF8A1-86B9-49C7-8408-C70657543AF7}.Master|Win32.Build.0 = Master|Win32 + {537CF8A1-86B9-49C7-8408-C70657543AF7}.Release|Win32.ActiveCfg = Release|Win32 + {537CF8A1-86B9-49C7-8408-C70657543AF7}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE