Jump to content

13 posts in this topic

Recommended Posts

Posted (edited)

 

Inventory::addItem(int count, Tile t)
MSHook(void, Inventory$addItem, void* obj, void* item) 
{
// do your own code
}
I don't know if it correct :(
Wait wait wait, I think you are right Kenny, I think this is te way to call functions with the real parameters, but I got confused, let's say that instead of

Inventory::addIem(int count, Tile tile);
The code is...:

int (*orig__ZNInventory15AddItemEv)(int count, Tile tile);
int __ZNInventory15AddItemEv(int count, Tile tile){
      //code
}
How would that look, using MSHook() ? Updated by CosnotraLF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines