// RVA: 0x117A220 Offset: 0x1176220 VA: 0x117A220
public static GameObject unlockNextSphere(sphereType sType) { }
// RVA: 0x117AA58 Offset: 0x1176A58 VA: 0x117AA58
public static bool areAnyLocked(string name) { }
// RVA: 0x117A240 Offset: 0x1176240 VA: 0x117A240
private static GameObject unlockRank() { }
// RVA: 0x117A6C4 Offset: 0x11766C4 VA: 0x117A6C4
private static GameObject unlockSecret() { }
Yes, I know this is the better way of doing it, not saying it's ideal to handle it with void. That's why I asked to see the hook. For how most people would use GameObject, like simply getting that gameobject, passing it as a parameter somewhere else, or just calling a function for that GO. That type of stuff works with just void. Returning a new GO is a bit more complicated, and yes requires the struct, or a library.Actually define the GameObject structure and return it
Saying "it works with just void" doesn't make it correct. Just because the function doesn't crash when you used void doesn't mean you're doing it right—it just means you're lucky the memory layout didn't break things yet.Yes, I know this is the better way of doing it, not saying it's ideal to handle it with void. That's why I asked to see the hook. For how most people would use GameObject, like simply getting that gameobject, passing it as a parameter somewhere else, or just calling a function for that GO. That type of stuff works with just void. Returning a new GO is a bit more complicated, and yes requires the struct, or a library.
But yeah, I agreeMaybe it's not good to teach to use void for everything. Better to learn BNM, structs etc.
no I'm not gonna it's easy to googleOk. Well maybe you could make a tutorial about it here so we all could learn how to do things properly
How to hook it as void pointer then, is not like this?The method literally returns a GameObject type… and you're saying it's fine to hook it with void?
Seriously, why does everyone here think you can just slap void on anything and hope it's going to work it's irritating how false information people spread to others you can really spend 5 minutes reading about return types to understand how to handle this
You’ve got two options:
Actually define the GameObject structure and return it
Or just hook it as void pointer ( void* )
you're welcome
yes that's how you do itHow to hook it as void pointer then, is not like this?
i know this is a void function pointer if its not, then what is it?
void *(old_funcname)(void*instance); ?
How to hook it as void pointer then, is not like this?
i know this is a void function pointer if its not, then what is it?
void *(old_funcname)(void*instance); ?
void* (*old_func)(void* instance);
void* func(void* instance) {
return old_func(instance);
}
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies