mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-21 05:15:44 +00:00
Fix for update
This commit is contained in:
parent
dd8c1ff71e
commit
4d979bf659
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user