Skip to content

Instantly share code, notes, and snippets.

@Khristian-kun
Created November 16, 2015 21:00
Show Gist options
  • Save Khristian-kun/dbde51c4b3650d2d56f5 to your computer and use it in GitHub Desktop.
Save Khristian-kun/dbde51c4b3650d2d56f5 to your computer and use it in GitHub Desktop.
Override Lava Bucket
//Override Lava Bucket
void (*_Item$initItems)();
void Item$initItems() {
void** vtable = *((void***) Item::mItems[325]);
vtable[3] = (void*) &_myGetItem;
const TextureUVCoordinateSet& &_myGetIcon("lava_bucket");
_Item$initItems();
}
MSHookFunction((void*) &Item::initItems, (void*) &Item$initItems, (void**) &_Item$initItems);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment