Skip to content

Textractor texthook.dll modification that allows blocking unnecessary hooks.

License

Notifications You must be signed in to change notification settings

fauu/Textractor-HookAllowlist

 
 

Repository files navigation

Textractor-HookAllowlist

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.

How to use

  1. Install the regular Textractor version.

  2. Download this repository’s release archive. It contains 32- and 64-bit versions of the modified texthook.dll file.

  3. Replace the appropriate original texthook.dll in the regular Textraction installation directory with the appropriate modified texthook.dll file from the extracted release archive.

  4. Launch Textractor along with your game.

  5. Attach Textractor to the game.

  6. Add custom hooks if necessary.

  7. Verify whether the text is extracted.

  8. Click “Save hook(s)” to make Textractor remember the game along with any custom hooks.

  9. 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.

  10. 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: ; text editors sometimes just insert spaces when TAB is pressed).

    Examples:

    • I want to only allow hooks named UserHook1:
    UserHook1[TAB]
    • I want to only allow hooks named KiriKiri1 or KiriKiri2:
    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.

  11. 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.

About

Textractor texthook.dll modification that allows blocking unnecessary hooks.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 97.9%
  • Other 2.1%