remove the bandaid

This commit is contained in:
alk 2022-11-30 14:13:20 +03:00 committed by GitHub
parent ed4f4e4bf7
commit 298593ada8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,12 +105,6 @@ namespace geode::addresser {
address = *reinterpret_cast<uint32_t*>(address + 2); address = *reinterpret_cast<uint32_t*>(address + 2);
// that then contains the actual address of the func // that then contains the actual address of the func
address = *reinterpret_cast<uintptr_t*>(address); address = *reinterpret_cast<uintptr_t*>(address);
// used for gd string funcs, pretty temporary
if (*reinterpret_cast<uint8_t*>(address) == 0xe9) {
// read the offset and add it
address += 5 + *reinterpret_cast<uint32_t*>(address + 1);
}
} }
#endif #endif