Fix for update

This commit is contained in:
fed 2023-09-13 17:43:18 +02:00
parent dd8c1ff71e
commit 4d979bf659

View File

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