mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
i did a thing
This commit is contained in:
parent
c97e95fc8d
commit
25f7313ad8
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <loader/Mod.hpp>
|
||||
#include <loader/Log.hpp>
|
||||
#include <utils/general.hpp>
|
||||
#include <utils/casts.hpp>
|
||||
|
||||
namespace geode::addresser {
|
||||
|
||||
|
@ -85,7 +86,7 @@ namespace geode::addresser {
|
|||
|
||||
#ifdef GEODE_IS_WINDOWS
|
||||
// check if first instruction is a jmp, i.e. if the func is a thunk
|
||||
if (*reference_cast<uint16_t*>(address) == 0x25ff) {
|
||||
if (*geode::cast::reference_cast<uint16_t*>(address) == 0x25ff) {
|
||||
// read where the jmp points to and jump there
|
||||
address = *reinterpret_cast<uintptr_t*>(address + 2);
|
||||
// that then contains the actual address of the func
|
||||
|
|
Loading…
Reference in a new issue