From 5e5f6c1c51f2f7bbcb7be1f3d7cb5856b28566e6 Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 15 Jan 2021 21:41:15 +0100 Subject: [PATCH] refactor(ReadSessionResponse): Removed unused file --- BigBaseV2/src/hooks/read_session_response.cpp | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 BigBaseV2/src/hooks/read_session_response.cpp diff --git a/BigBaseV2/src/hooks/read_session_response.cpp b/BigBaseV2/src/hooks/read_session_response.cpp deleted file mode 100644 index 9d5c0ec5..00000000 --- a/BigBaseV2/src/hooks/read_session_response.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "hooking.hpp" -#include "features.hpp" - -namespace big -{ - bool hooks::read_session_response(uint64_t rcx) - { - bool bReturn = true; - - if (rcx && *(uint32_t*)(rcx + 0x23C4)) { - uint32_t i = 0; - do { - uint64_t address = rcx + 0x22C0 + (i * 8); - if (*(uint64_t*)(address)) { - const char* responseData = *(const char**)(address); - if (responseData) { - try { - nlohmann::json Json = nlohmann::json::parse(responseData); - if (Json.find("gsinfo") == Json.end()) { - return false; - } - - uint64_t rockstar_id = std::stoul(Json["_id"].get().substr(3)); - std::string gs_info_json = Json["gsinfo"].get(); - - features::notify::above_map("HOOK GOT DRIP."); - - LOG(INFO) << "Rockstar ID: " << rockstar_id; - LOG(INFO) << "Data: "; - LOG(INFO) << gs_info_json; - LOG(INFO) << rockstar_id << " == " << g_rid_joiner.rid; - - if (rockstar_id == g_rid_joiner.rid) { - if (gs_info_json.empty()) - { - // PendingTimeout = 0; - } - else - { - g_rid_joiner.gs_info = gs_info_json; - } - - bReturn = false; - } - } - catch (...) { - return false; - } - } - } - - i++; - } while (i < *(uint32_t*)(rcx + 0x23C4)); - } - - if (!bReturn) return false; - return g_hooking->m_read_session_response.get_original()(rcx); - } -} \ No newline at end of file