Merge pull request #5 from nullworks/master

Update
This commit is contained in:
Jenny White 2018-04-30 19:24:33 +03:00 committed by GitHub
commit 89edbf8abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ set(CMAKE_BUILD_TYPE_VALUES "Debug;Release" CACHE INTERNAL "List of supported bu
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_BUILD_TYPE_VALUES})
cmake_minimum_required(VERSION 3.0)
project(cathook VERSION 0.0.1 DESCRIPTION "Free Source Engine Trainer")
project(cathook VERSION 0.0.1)
add_library(cathook SHARED "")
set(GameSpecific 1 CACHE BOOL "Build for specific target game (As opposed to universal, but slower, lib)")
@ -128,4 +128,4 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
endif()
add_custom_command(TARGET cathook POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cathook> "${CMAKE_SOURCE_DIR}/bin/$<TARGET_FILE_NAME:cathook>")
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cathook> "${CMAKE_SOURCE_DIR}/bin/$<TARGET_FILE_NAME:cathook>")

View File

@ -37,7 +37,7 @@ and a lot of useful features, including
You need CMake to build cathook, CMake should take care of dependencies
Install [libglez](https://github.com/nullifiedcat/libglez) and [libxoverlay](https://github.com/nullifiedcat/libxoverlay)
Install [libglez](https://github.com/nullifiedcat/libglez), [libxoverlay](https://github.com/nullifiedcat/libxoverlay) and [simple-ipc](https://github.com/nullworks/simple-ipc)
* Clone the repo of library (`git clone <URL>`)
* `mkdir build && cd build`

View File

@ -51,7 +51,7 @@ export LD_LIBRARY_PATH="$GAMEROOT"\
ulimit -n 2048
export LD_PRELOAD
LD_PRELOAD="$(pwd)/bin/libcathook.so"
LD_PRELOAD="$(pwd)/bin/libcathook.so:/usr/lib/i386-linux-gnu/libstdc++.so.6"
# Enable nVidia threaded optimizations
export __GL_THREADED_OPTIMIZATIONS=1