Update signatures.cpp

This commit is contained in:
fed 2023-08-10 01:55:12 +02:00
parent ed1ac62153
commit dd8c1ff71e

View File

@ -63,13 +63,13 @@ namespace signatures
bool process_gsc_ctx()
{
const auto string_ref = find_string_ref("in call to builtin %s");
const auto string_ref = find_string_ref("in call to builtin %s \"%s\"");
if (!string_ref)
{
return false;
}
const auto gsc_ctx_ptr = *reinterpret_cast<size_t*>(string_ref - 0x8C);
const auto gsc_ctx_ptr = *reinterpret_cast<size_t*>(string_ref - 0xAD);
game::plutonium::gsc_ctx.set(gsc_ctx_ptr);
return true;
}