Skip to content

Commit

Permalink
Fixed some wrong include paths and fixed some post build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kariaro committed May 2, 2021
1 parent 8c7ce28 commit 1abdddf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
4 changes: 4 additions & 0 deletions SMInjector/SMInjector.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -104,6 +105,7 @@
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -119,6 +121,7 @@
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -134,6 +137,7 @@
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
3 changes: 3 additions & 0 deletions SMLibrary/src/sm_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ BOOL Startup(HMODULE hModule) {
}

BOOL PostConsoleInjections() {
if(true) return;

Console::log_open();
Console::log(Color::Aqua, "[SMLibrary]: Installing the library functions");
util = new HookUtility();
Expand All @@ -70,6 +72,7 @@ BOOL PostConsoleInjections() {
// Init the plugin
plugin.load();
}

/*
if(!InjectFMOD()) {
printf("Failed to execute [InjectFMOD]\n");
Expand Down
20 changes: 12 additions & 8 deletions SMPlugin/SMPlugin.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<IncludePath>C:\Users\Admin\source\repos\SMInjectorProject\SMLibrary\include;$(IncludePath)</IncludePath>
<IncludePath>$(SolutionDir)..\SMLibrary\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>C:\Users\Admin\source\repos\SMInjectorProject\SMLibrary\include;$(IncludePath)</IncludePath>
<IncludePath>$(SolutionDir)..\SMLibrary\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<IncludePath>C:\Users\Admin\source\repos\SMInjectorProject\SMLibrary\include;$(IncludePath)</IncludePath>
<IncludePath>$(SolutionDir)..\SMLibrary\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>C:\Users\Admin\source\repos\SMInjectorProject\SMLibrary\include;$(IncludePath)</IncludePath>
<IncludePath>$(SolutionDir)..\SMLibrary\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand All @@ -102,7 +102,8 @@
<AdditionalDependencies>SMLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy /B "$(LocalDebuggerCommand)" "$(OutputPath)\plugins\$(TargetFileName)"</Command>
<Command>mkdir "$(OutputPath)plugins\"
copy /B "$(LocalDebuggerCommand)" "$(OutputPath)plugins\$(TargetFileName)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -122,7 +123,8 @@
<AdditionalDependencies>SMLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy /B "$(LocalDebuggerCommand)" "$(OutputPath)\plugins\$(TargetFileName)"</Command>
<Command>mkdir "$(OutputPath)plugins\"
copy /B "$(LocalDebuggerCommand)" "$(OutputPath)plugins\$(TargetFileName)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -138,7 +140,8 @@
<AdditionalDependencies>SMLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy /B "$(LocalDebuggerCommand)" "$(OutputPath)\plugins\$(TargetFileName)"</Command>
<Command>mkdir "$(OutputPath)plugins\"
copy /B "$(LocalDebuggerCommand)" "$(OutputPath)plugins\$(TargetFileName)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -158,7 +161,8 @@
<AdditionalDependencies>SMLibrary.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy /B "$(LocalDebuggerCommand)" "$(OutputPath)\plugins\$(TargetFileName)"</Command>
<Command>mkdir "$(OutputPath)plugins\"
copy /B "$(LocalDebuggerCommand)" "$(OutputPath)plugins\$(TargetFileName)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down

0 comments on commit 1abdddf

Please sign in to comment.