#include "common.hpp" #include "features.hpp" #include "fiber_pool.hpp" #include "gui.hpp" #include "logger.hpp" #include "hooking.hpp" #include "pointers.hpp" #include "renderer.hpp" #include "script_mgr.hpp" BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) { using namespace big; if (reason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(hmod); g_hmodule = hmod; g_main_thread = CreateThread(nullptr, 0, [](PVOID) -> DWORD { while (!FindWindow(L"grcWindow", L"Grand Theft Auto V")) std::this_thread::sleep_for(1s); auto logger_instance = std::make_unique(); try { LOG(RAW_GREEN_TO_CONSOLE) << u8R"kek( ______ _ ______ ______ (____ \(_) (____ \ (_____ \ ____) )_ ____ ____) ) ____ ___ ____ _ _ ____) ) | __ (| |/ _ | __ ( / _ |/___)/ _ ) | | /_____/ | |__) ) ( ( | | |__) | ( | |___ ( (/ / \ V /_______ |______/|_|\_|| |______/ \_||_(___/ \____) \_/(_______) (_____|)kek"; auto pointers_instance = std::make_unique(); LOG(INFO) << "Pointers initialized."; auto renderer_instance = std::make_unique(); LOG(INFO) << "Renderer initialized."; auto fiber_pool_instance = std::make_unique(10); LOG(INFO) << "Fiber pool initialized."; auto hooking_instance = std::make_unique(); LOG(INFO) << "Hooking initialized."; g_settings.load(); LOG(INFO) << "Settings Loaded."; g_script_mgr.add_script(std::make_unique