Textractor texthook.dll
modification that allows blocking unnecessary
hooks. By default, the functionality is unchanged. But if there is an
AllowedHooks.txt
file in the directory of the game’s executable file, only
hooks with names matching those listed in that file are allowed to be inserted.
-
Install the regular Textractor version.
-
Download this repository’s release archive. It contains 32- and 64-bit versions of the modified
texthook.dll
file. -
Replace the appropriate original
texthook.dll
in the regular Textraction installation directory with the appropriate modifiedtexthook.dll
file from the extracted release archive. -
Launch Textractor along with your game.
-
Attach Textractor to the game.
-
Add custom hooks if necessary.
-
Verify whether the text is extracted.
-
Click “Save hook(s)” to make Textractor remember the game along with any custom hooks.
-
Note the names of the hooks you want to keep. The names are specified in the top dropdown.
For example, on this screenshot, the name of the hook is
GetGlyphOutlineW
. -
Create
AllowedHooks.txt
in the same directory as the game’s exe file and place the hook names in that file.The names should be in a single line, and they should all be terminated with a TAB character (copy it from here:
Examples:
- I want to only allow hooks named
UserHook1
:
UserHook1[TAB]
- I want to only allow hooks named
KiriKiri1
orKiriKiri2
:
KiriKiri1[TAB]KiriKiri2[TAB]
[!WARNING] If you are hooking a Unity game, you will need to allow the
Mono Searcher
hook alongside your target hooks. Otherwise your target hooks will not be inserted. - I want to only allow hooks named
-
Close Textractor and the game, and reopen them.
Only hooks with the listed names should be inserted now. If you wish to allow all hooks again, simply remove the file, or just rename it.