WIP: makefile for linux

This commit is contained in:
Jonathan Knapp 2020-07-08 14:08:24 -07:00
parent 6bdac12bc9
commit 39b72273fd
4 changed files with 31 additions and 1 deletions

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
```