diff --git a/text.cpp b/text.cpp index 7aff73a..6975fc0 100644 --- a/text.cpp +++ b/text.cpp @@ -102,6 +102,7 @@ const char* TOO_MANY_HOOKS = u8"Textractor: too many hooks: can't insert"; const char* STARTING_SEARCH = u8"Textractor: starting search"; const char* NOT_ENOUGH_TEXT = u8"Textractor: not enough text to search accurately"; const char* HOOK_SEARCH_INITIALIZED = u8"Textractor: search initialized with %zd hooks"; +const char* MAKE_GAME_PROCESS_TEXT = u8"Textractor: please click around in the game to force it to process text during the next %d seconds!"; const char* HOOK_SEARCH_FINISHED = u8"Textractor: hook search finished, %d results found"; const char* OUT_OF_RECORDS_RETRY = u8"Textractor: out of search records, please retry if results are poor (default record count increased)"; const char* FUNC_MISSING = u8"Textractor: function not present"; diff --git a/texthook/hookfinder.cc b/texthook/hookfinder.cc index f45470b..93c43c6 100644 --- a/texthook/hookfinder.cc +++ b/texthook/hookfinder.cc @@ -5,6 +5,7 @@ extern const char* STARTING_SEARCH; extern const char* HOOK_SEARCH_INITIALIZED; +extern const char* MAKE_GAME_PROCESS_TEXT; extern const char* HOOK_SEARCH_FINISHED; extern const char* OUT_OF_RECORDS_RETRY; extern const char* NOT_ENOUGH_TEXT; @@ -220,6 +221,7 @@ void SearchForHooks(SearchParam spUser) } ConsoleOutput(HOOK_SEARCH_INITIALIZED, addresses.size()); MH_ApplyQueued(); + ConsoleOutput(MAKE_GAME_PROCESS_TEXT, sp.searchTime / 1000); Sleep(sp.searchTime); for (auto addr : addresses) MH_QueueDisableHook((void*)addr); MH_ApplyQueued();