Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
Riremito committed Dec 12, 2022
1 parent a677502 commit 78847c4
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CopyLib.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
xcopy "Simple\Share\Simple\" "Share\Simple\" /Y /I
xcopy "Hook\Share\Hook" "Share\Hook\" /Y /I
1 change: 1 addition & 0 deletions Hook/Hook/Hook.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>../Zydis64;../Zycore64</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
10 changes: 5 additions & 5 deletions Hook/Hook64/SimpleHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#define ZYCORE_STATIC_DEFINE
#define ZYDIS_STATIC_DEFINE
#include<inttypes.h>
#include<Zydis/Zydis.h>
#include"../Zydis64/Zydis/Zydis.h"
#ifndef _WIN64
#pragma comment(lib, "../Share/ExternalLib/Zydis.lib")
#pragma comment(lib, "../Share/ExternalLib/Zycore.lib")
#pragma comment(lib, "../Share/Hook/Zydis.lib")
#pragma comment(lib, "../Share/Hook/Zycore.lib")
#else
#pragma comment(lib, "../Share/ExternalLib/Zydis64.lib")
#pragma comment(lib, "../Share/ExternalLib/Zycore64.lib")
#pragma comment(lib, "../Share/Hook/Zydis64.lib")
#pragma comment(lib, "../Share/Hook/Zycore64.lib")
#endif
#include<vector>

Expand Down
3 changes: 3 additions & 0 deletions Hook/Zycore/Zycore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>xcopy "..\Release\$(ProjectName).lib" "..\Share\Hook\" /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
3 changes: 3 additions & 0 deletions Hook/Zycore64/Zycore64.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>xcopy "..\Release\$(ProjectName).lib" "..\Share\Hook\" /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
3 changes: 3 additions & 0 deletions Hook/Zydis/Zydis.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>xcopy "..\Release\$(ProjectName).lib" "..\Share\Hook\" /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Decoder.c" />
Expand Down
3 changes: 3 additions & 0 deletions Hook/Zydis64/Zydis64.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>xcopy "..\Release\$(ProjectName).lib" "..\Share\Hook\" /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
11 changes: 11 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Simple
+ 外部ライブラリに依存しないライブラリ
+ よく使うコードがまとめられている

## Hook
+ 外部ライブラリに依存しているライブラリ
+ Zydisに依存している
+ フックに利用する

## CopyLib.bat
+ 必要なプロジェクトをビルドした後に実行すると、.libファイルと.hファイルをShareフォルダにまとめられる

0 comments on commit 78847c4

Please sign in to comment.