Jump to content

4 posts in this topic

Recommended Posts

Posted (edited)

Was wondering how I would hook this function that has a custom enumerable type for the first argument parsed into the function. What I mean is how I would exactly define it as it's a custom enum.

When I mean Hooking I mean by using MS and doing a MSHookFunction. 

Do excuse my not very good understanding off MSHook's and its usage.

// Thing to hook:
// As you can see: 'LocationType' is the custom enum type. 
public static bool IsActiveFountain(LocationType locationType, int index)
{
	return default(bool);
}

 

Updated by carpoa
Posted
21 hours ago, Taylor Meyer said:

so I want to mention right away to make it clear that this is not my expertise at all



but what I did is I took your code and did some prompts into Copilot AI code interpreter and this is what it said:

Disclaimer: keep in mind if anything is wrong it is the AI

everything in the quote and the extra quote is by the code interpreter
 



Generated using Copilot AI

I appreciate you trying to help but if you don't know please don't go to an AI bot. They only know from the data given to them from when they were learning from the internet meaning they can be wrong most of the time.

Posted

@Laxus@Zahir

I do not mean to be a pain by pinging you both but I could use some help with this.

Iam a bit inexperienced with MSHooking and stuff like that; I know how to do it just in this case with custom types like this I don't really know.

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