diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2014-11-09 17:43:54 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2015-01-03 21:44:02 +0300 |
commit | 93ad74b467980a45537141e14d385cd8a75956b3 (patch) | |
tree | 2bfc08a31765777ca295b201fdc2619d2231f2dd /3rdparty/minhook-build | |
parent | a090c86ee0ce91d76d8f7a18d64df70552e0c743 (diff) |
Add MinHook-based overlay for Windows x64.
This commit adds MinHook as a 3rd party
dependency and adds an alternative HardHook
implementation that makes use of MinHook.
This new MinHook-based HardHook implementation
allows us to provide an overlay for Mumble on
Windows x64.
The x64 overlay hasn't seen much testing in
real-world x64 games, except some minor testing
for World of Warcraft running in x64 mode, where
it works just fine.
There seems to be a compatibility with the Uplay
overlay, which causes Far Cry 4 to crash at the
"Press any key to continue" screen that is shown
just after launching the game. However,
Assassin's Creed: Unity works fine, so it might
just be a Far Cry 4 issue.
The x64 overlay also seems to interoperate with
the Steam overlay just fine.
I think this is a good starting point for the
feature. Let us get it into snapshots and let
us try to squash any addition bugs we find.
Diffstat (limited to '3rdparty/minhook-build')
-rw-r--r-- | 3rdparty/minhook-build/minhook-build.pro | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/3rdparty/minhook-build/minhook-build.pro b/3rdparty/minhook-build/minhook-build.pro new file mode 100644 index 000000000..d517db62c --- /dev/null +++ b/3rdparty/minhook-build/minhook-build.pro @@ -0,0 +1,40 @@ +include(../../compiler.pri)
+
+BUILDDIR=$$basename(PWD)
+SOURCEDIR=$$replace(BUILDDIR,-build,-src)
+
+!exists(../$$SOURCEDIR/README.md) {
+ message("The $$SOURCEDIR/ directory was not found. Please update your submodules (git submodule update --init).")
+ error("Aborting configuration")
+}
+
+CONFIG(debug, debug|release) {
+ CONFIG += console
+ DESTDIR = ../../debug
+}
+
+CONFIG(release, debug|release) {
+ DESTDIR = ../../release
+}
+
+TEMPLATE = lib
+CONFIG -= qt
+CONFIG += debug_and_release
+CONFIG += staticlib
+VPATH = ../minhook-src
+TARGET = minhook
+INCLUDEPATH = ../minhook-src/src ../minhook-src/src/HDE ../minhook-src/include
+DEFINES += WIN32 _WINDOWS _USRDLL MINHOOK_EXPORTS
+
+QMAKE_CFLAGS_RELEASE -= -MD
+QMAKE_CFLAGS_DEBUG -= -MDd
+
+QMAKE_CXXFLAGS_RELEASE *= -MT
+QMAKE_CXXFLAGS_DEBUG *= -MTd
+
+SOURCES *= \
+ src/HDE/hde64.c \
+ src/HDE/hde32.c \
+ src/buffer.c \
+ src/hook.c \
+ src/trampoline.c
|