diff --git a/DevourClient/Utils/Settings/Settings.cpp b/DevourClient/Utils/Settings/Settings.cpp index 59954aa..28f8d52 100644 --- a/DevourClient/Utils/Settings/Settings.cpp +++ b/DevourClient/Utils/Settings/Settings.cpp @@ -1,6 +1,9 @@ #include "Settings.hpp" namespace settings { + int height = 1080; + int width = 1920; + bool big_flashlight = false; float flashlight_color[4] = { 255.f, 255.f, 255.f, 255.f }; diff --git a/DevourClient/Utils/Settings/Settings.hpp b/DevourClient/Utils/Settings/Settings.hpp index 456cbab..e6dc16c 100644 --- a/DevourClient/Utils/Settings/Settings.hpp +++ b/DevourClient/Utils/Settings/Settings.hpp @@ -5,6 +5,9 @@ #include namespace settings { + extern int height; + extern int width; + extern bool big_flashlight; extern float flashlight_color[4]; diff --git a/DevourClient/dllmain.cpp b/DevourClient/dllmain.cpp index 2f494c9..159209f 100644 --- a/DevourClient/dllmain.cpp +++ b/DevourClient/dllmain.cpp @@ -9,7 +9,7 @@ #include "Utils/Output/Output.hpp" #include "Callbacks/OnUpdate.hpp" #include "Utils/Players/Players.hpp" -#include "Features/ESP/ESP.hpp" +#include "Utils/Objects/Objects.hpp" #include @@ -61,12 +61,17 @@ DWORD WINAPI Main() { CreateHooks(); print("[+] Created hooks\n"); + RECT desktop; + const HWND hDesktop = GetDesktopWindow(); + GetWindowRect(hDesktop, &desktop); + settings::height = desktop.right; + settings::width = desktop.bottom; + IL2CPP::Callback::Initialize(); IL2CPP::Callback::OnUpdate::Add(OnUpdate); CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Players::GetPlayersThread, 0, 0, 0); - CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ESP::PlayerESP, 0, 0, 0); //running in a different thread to help performance - + CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Objects::GetObjectsThread, 0, 0, 0); return TRUE; }