Merge pull request #8 from Thann/makefile

WIP: Makefile
This commit is contained in:
Carl Schou 2020-07-09 11:41:33 +02:00 committed by GitHub
commit bd4ac6f374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 35 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "fmt"]
path = fmt
url = https://github.com/fmtlib/fmt

3
BottlEye/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.o
*.dll
*.dll.a

19
BottlEye/Makefile Normal file
View File

@ -0,0 +1,19 @@
IDIR=../fmt/include
CXX=x86_64-w64-mingw32-g++
CFLAGS=-I$(IDIR) -std=c++17 -D ADD_EXPORTS
OBJ=entry.o emulator.o delegate.o singleton.o format.o
BEClient_x64.dll: $(OBJ)
$(CXX) -shared -o BEClient_x64.dll $(OBJ) -Wl,--out-implib,BEClient_x64.dll.a
%.o: %.cpp
$(CXX) -c -o $@ $< $(CFLAGS)
format.o: ../fmt/src/format.cc
$(CXX) -c -o $@ $< $(CFLAGS)
.PHONY: clean
clean:
rm -f *.o *.dll *.dll.a

View File

@ -2,7 +2,7 @@
#include <windows.h>
#include <iostream>
#include <chrono>
#include <fmt\core.h>
#include <fmt/core.h>
class loggr
{

View File

@ -9,3 +9,11 @@ BottlEye is a usermode emulator for the commercial anti-cheat [BattlEye](battley
First you need to set up a man-in-the-middle environment that allows you to capture the responses sent by the real BEClient. When those are logged, implement them into BottlEye and compile it. Replace the BEClient_x64.dll module on disk with your BottlEye build and launch the game.
If you are having issues figuring out the ip address and port to monitor with Wireshark (or whatever tool you choose to use), build BottlEye without the responses and launch the game with it. BottlEye will print the ip and port, which you can later use to filter traffic with.
### Linux
```bash
git submodule update --init
cd BottlEye
make
```

1
fmt Submodule

@ -0,0 +1 @@
Subproject commit 638db5ca5e47066b0b9ac297bdcfcae69ccd0276