This method allows you to register any texture file and more:
The method is used to open i.e. ytd files.
TODO: Scan: E8 ? ? ? ? 48 8B 35 ? ? ? ? 0F B7 46 08
Arguments: using openFile = void(*)(int* textureId, const char* path, bool unk_t, const char* name, bool unk_f, bool unk_f2); Call: int textureId{}; const char* name = "NameToRegisterWith"; openFile(&textureId, "Path/To/File", true, name, false, false); if (textureId != -1) LOG_INFO("Opened %s file with ID: %i", name, textureId);
If you don't know how you can scan a pattern and get a pointer to the function check out my GitHub:
This is an example use of the pattern scanner provided in the repository
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.