-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add C++ variant, change license, update readme.
- Loading branch information
1 parent
d39266c
commit ede5e58
Showing
38 changed files
with
2,093 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
.vs/ | ||
__history/ | ||
Win32/ | ||
bin/ | ||
Debug/ | ||
Release/ | ||
*.dcu | ||
*.stat | ||
*.res | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
This is free and unencumbered software released into the public domain. | ||
The MIT License (MIT) | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
Copyright (c) 2017-2018 Alexander Belkin | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
For more information, please refer to <http://unlicense.org/> | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.27703.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StdPatch", "msvc\StdPatch.vcxproj", "{99A544D0-0889-4D01-A323-2F817B1A3686}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Debug|x64.ActiveCfg = Debug|x64 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Debug|x64.Build.0 = Debug|x64 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Debug|x86.Build.0 = Debug|Win32 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Release|x64.ActiveCfg = Release|x64 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Release|x64.Build.0 = Release|x64 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Release|x86.ActiveCfg = Release|Win32 | ||
{99A544D0-0889-4D01-A323-2F817B1A3686}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {67D970DE-7384-4D9A-A49E-CFB7D41EF3D8} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.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> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>15.0</VCProjectVersion> | ||
<ProjectGuid>{99A544D0-0889-4D01-A323-2F817B1A3686}</ProjectGuid> | ||
<RootNamespace>StdPatch</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<OutDir>C:\Steam\steamapps\common\SourceFilmmaker\game\bin\</OutDir> | ||
<IntDir>$(ProjectDir)..\bin\$(Configuration)\</IntDir> | ||
<TargetExt>.dll</TargetExt> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<OutDir>C:\Steam\steamapps\common\SourceFilmmaker\game\bin\</OutDir> | ||
<IntDir>$(ProjectDir)..\bin\$(Configuration)\</IntDir> | ||
<TargetExt>.dll</TargetExt> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<SDLCheck>true</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_MBCS;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>$(ProjectDir)..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>DebugFull</GenerateDebugInformation> | ||
</Link> | ||
<Link> | ||
<GenerateMapFile>true</GenerateMapFile> | ||
</Link> | ||
<Link> | ||
<MapFileName>$(OutDir)$(TargetName).map</MapFileName> | ||
</Link> | ||
<Link> | ||
<MapExports>true</MapExports> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<SDLCheck>true</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
</ClCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
<AdditionalIncludeDirectories>$(ProjectDir)..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_MBCS;RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
</ClCompile> | ||
<Link> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>true</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
</ClCompile> | ||
<Link> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\src\StdPatch.cpp" /> | ||
<ClCompile Include="..\src\Studio\Detour.cpp" /> | ||
<ClCompile Include="..\src\Studio\Exception.cpp" /> | ||
<ClCompile Include="..\src\Studio\Funcs.cpp" /> | ||
<ClCompile Include="..\src\Studio\Global.cpp" /> | ||
<ClCompile Include="..\src\Studio\Patch.cpp" /> | ||
<ClCompile Include="..\src\Utils\File.cpp" /> | ||
<ClCompile Include="..\src\Utils\Memory.cpp" /> | ||
<ClCompile Include="..\src\Utils\String.cpp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="..\src\Common\Console.h" /> | ||
<ClInclude Include="..\src\Common\Defines.h" /> | ||
<ClInclude Include="..\src\Common\RTTI.h" /> | ||
<ClInclude Include="..\src\Studio\Detour.h" /> | ||
<ClInclude Include="..\src\Studio\Exception.h" /> | ||
<ClInclude Include="..\src\Studio\Funcs.h" /> | ||
<ClInclude Include="..\src\Studio\Global.h" /> | ||
<ClInclude Include="..\src\Studio\Patch.h" /> | ||
<ClInclude Include="..\src\Studio\SDK.h" /> | ||
<ClInclude Include="..\src\Utils\File.h" /> | ||
<ClInclude Include="..\src\Utils\Memory.h" /> | ||
<ClInclude Include="..\src\Utils\String.h" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="src"> | ||
<UniqueIdentifier>{a6c88087-a9dd-4a50-acb0-70f7f5d60251}</UniqueIdentifier> | ||
</Filter> | ||
<Filter Include="src\Studio"> | ||
<UniqueIdentifier>{6772934b-6f5c-40cc-a41b-61dea0ca2255}</UniqueIdentifier> | ||
</Filter> | ||
<Filter Include="src\Utils"> | ||
<UniqueIdentifier>{19636d7d-e272-48fe-8530-bb3527a2cbfe}</UniqueIdentifier> | ||
</Filter> | ||
<Filter Include="src\Common"> | ||
<UniqueIdentifier>{0b0e0165-7dde-48fd-bfc8-c95b70cd5aa1}</UniqueIdentifier> | ||
</Filter> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="..\src\StdPatch.cpp"> | ||
<Filter>src</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Studio\Patch.cpp"> | ||
<Filter>src\Studio</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Utils\Memory.cpp"> | ||
<Filter>src\Utils</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Studio\Global.cpp"> | ||
<Filter>src\Studio</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Studio\Funcs.cpp"> | ||
<Filter>src\Studio</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Utils\String.cpp"> | ||
<Filter>src\Utils</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Studio\Exception.cpp"> | ||
<Filter>src\Studio</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Utils\File.cpp"> | ||
<Filter>src\Utils</Filter> | ||
</ClCompile> | ||
<ClCompile Include="..\src\Studio\Detour.cpp"> | ||
<Filter>src\Studio</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="..\src\Studio\Patch.h"> | ||
<Filter>src\Studio</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Utils\Memory.h"> | ||
<Filter>src\Utils</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Studio\Global.h"> | ||
<Filter>src\Studio</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Studio\SDK.h"> | ||
<Filter>src\Studio</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Studio\Funcs.h"> | ||
<Filter>src\Studio</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Common\Defines.h"> | ||
<Filter>src\Common</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Common\Console.h"> | ||
<Filter>src\Common</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Utils\String.h"> | ||
<Filter>src\Utils</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Studio\Exception.h"> | ||
<Filter>src\Studio</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Utils\File.h"> | ||
<Filter>src\Utils</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Common\RTTI.h"> | ||
<Filter>src\Common</Filter> | ||
</ClInclude> | ||
<ClInclude Include="..\src\Studio\Detour.h"> | ||
<Filter>src\Studio</Filter> | ||
</ClInclude> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup /> | ||
</Project> |
Oops, something went wrong.