Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PolyHook2 support #45

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@
*.exe
*.out
*.app

.vs/
out/
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

59 changes: 59 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
project(Kiero LANGUAGES CXX)

option(DYNAMIC "If Kiero should be linked dynamically or not" OFF)
if(DYNAMIC)
add_library(Kiero SHARED)
else()
add_library(Kiero STATIC)
endif()

option(KIERO_INCLUDE_D3D9 "if you need D3D9 hook" OFF)
if(KIERO_INCLUDE_D3D9)
add_compile_definitions(KIERO_INCLUDE_D3D9 1)
endif()

option(KIERO_INCLUDE_D3D10 "if you need D3D10 hook" OFF)
if(KIERO_INCLUDE_D3D10)
add_compile_definitions(KIERO_INCLUDE_D3D10 1)
endif()

option(KIERO_INCLUDE_D3D11 "if you need D3D11 hook" OFF)
if(KIERO_INCLUDE_D3D11)
add_compile_definitions(KIERO_INCLUDE_D3D11 1)
endif()

option(KIERO_INCLUDE_D3D12 "if you need D3D12 hook" OFF)
if(KIERO_INCLUDE_D3D12)
add_compile_definitions(KIERO_INCLUDE_D3D12 1)
endif()

option(KIERO_INCLUDE_OPENGL "if you need OpenGL hook" OFF)
if(KIERO_INCLUDE_OPENGL)
add_compile_definitions(KIERO_INCLUDE_OPENGL 1)
endif()

option(KIERO_INCLUDE_VULKAN "if you need Vulkan hook" OFF)
if(KIERO_INCLUDE_VULKAN)
add_compile_definitions(KIERO_INCLUDE_VULKAN 1)
endif()

option(KIERO_USE_MINHOOK "if you will use kiero::bind function" OFF)
if(KIERO_USE_MINHOOK)
add_compile_definitions(KIERO_USE_MINHOOK 1)
endif()

option(KIERO_USE_POLYHOOK "if you will use kiero::bind function" OFF)
if(KIERO_USE_POLYHOOK)
add_compile_definitions(KIERO_USE_POLYHOOK 1)
endif()

target_sources(Kiero PRIVATE
"${CMAKE_CURRENT_LIST_DIR}/kiero.cpp"
)

target_include_directories(Kiero INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
if(KIERO_USE_POLYHOOK)
target_link_libraries(Kiero PRIVATE PolyHook_2)
elseif(KIERO_USE_MINHOOK)
target_link_libraries(Kiero PRIVATE minhook)
endif()
10 changes: 0 additions & 10 deletions examples/imgui/README.md

This file was deleted.

1 change: 0 additions & 1 deletion examples/imgui/imgui
Submodule imgui deleted from 110f50
57 changes: 0 additions & 57 deletions examples/imgui/impl/d3d10_impl.cpp

This file was deleted.

14 changes: 0 additions & 14 deletions examples/imgui/impl/d3d10_impl.h

This file was deleted.

60 changes: 0 additions & 60 deletions examples/imgui/impl/d3d11_impl.cpp

This file was deleted.

14 changes: 0 additions & 14 deletions examples/imgui/impl/d3d11_impl.h

This file was deleted.

67 changes: 0 additions & 67 deletions examples/imgui/impl/d3d9_impl.cpp

This file was deleted.

14 changes: 0 additions & 14 deletions examples/imgui/impl/d3d9_impl.h

This file was deleted.

19 changes: 0 additions & 19 deletions examples/imgui/impl/shared.cpp

This file was deleted.

6 changes: 0 additions & 6 deletions examples/imgui/impl/shared.h

This file was deleted.

28 changes: 0 additions & 28 deletions examples/imgui/impl/win32_impl.cpp

This file was deleted.

Loading