#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 { auto logger_instance = std::make_unique(); try { LOG_RAW(log_color::green | log_color::intensify, u8R"kek( ... ;::::; ;::::; :; ;:::::' :; ;:::::; ;. ,:::::' ; OOO\ ::::::; ; OOOOO\ ;:::::; ; OOOOOOOO ,;::::::; ;' / OOOOOOO ;:::::::::`. ,,,;. / / DOOOOOO .';:::::::::::::::::;, / / DOOOO ,::::::;::::::;;;;::::;, / / DOOO ;`::::::`'::::::;;;::::: ,#/ / DOOO :`:::::::`;::::::;;::: ;::# / DOOO ::`:::::::`;:::::::: ;::::# / DOO `:`:::::::`;:::::: ;::::::#/ DOO :::`:::::::`;; ;:::::::::## OO ::::`:::::::`;::::::::;:::# OO `:::::`::::::::::::;'`:;::# O `:::::`::::::::;' / / `:# ::::::`:::::;' / / `# )kek"); auto pointers_instance = std::make_unique(); LOG_INFO("Pointers initialized."); if (*g_pointers->m_game_state != eGameState::Playing) { LOG_INFO("Waiting for the game to load."); do { std::this_thread::sleep_for(100ms); } while (*g_pointers->m_game_state != eGameState::Playing); LOG_INFO("The game has loaded."); } else { LOG_INFO("The game is already loaded."); } 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_script_mgr.add_script(std::make_unique