• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Red Dead Redemption 2 Memory Code

RockstarDev

New Member

RED%2BDEAD%2BREDEMPTION%2B2.jpg






[hide-reply][/hide-reply]
[hide-reply]
static uintptr_t find_signature(const char* module, const char* pattern_, const char* mask) {
const auto compare = [](const uint8_t * data, const uint8_t * pattern, const char* mask_) {
for (; *mask_; ++mask_, ++data, ++pattern)
if (*mask_ == 'x' && *data != *pattern)
return false;

return (*mask_) == 0;
};


MODULEINFO module_info = {};
GetModuleInformation(GetCurrentProcess(), GetModuleHandleA(module), &module_info, sizeof MODULEINFO);

auto module_start = uintptr_t(module_info.lpBaseOfDll);
const uint8_t* pattern = reinterpret_cast<const uint8_t*>(pattern_);
for (size_t i = 0; i < module_info.SizeOfImage; i++)
if (compare(reinterpret_cast<uint8_t*>(module_start + i), pattern, mask))
return module_start + i;

return 0;
[/hide-reply]


------------------------------------------------------------​
 
RED%2BDEAD%2BREDEMPTION%2B2.jpg






***Hidden content cannot be quoted.***
***Hidden content cannot be quoted.***


------------------------------------------------------------​
Thanks bro,nice.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Chat Bot: ngroves671 is our newest member. Welcome!
      Back
      Top