mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
more hook search instructions
This commit is contained in:
parent
7b3136dcc7
commit
cbd5b01385
1
text.cpp
1
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* STARTING_SEARCH = u8"Textractor: starting search";
|
||||||
const char* NOT_ENOUGH_TEXT = u8"Textractor: not enough text to search accurately";
|
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* 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* 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* 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";
|
const char* FUNC_MISSING = u8"Textractor: function not present";
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
extern const char* STARTING_SEARCH;
|
extern const char* STARTING_SEARCH;
|
||||||
extern const char* HOOK_SEARCH_INITIALIZED;
|
extern const char* HOOK_SEARCH_INITIALIZED;
|
||||||
|
extern const char* MAKE_GAME_PROCESS_TEXT;
|
||||||
extern const char* HOOK_SEARCH_FINISHED;
|
extern const char* HOOK_SEARCH_FINISHED;
|
||||||
extern const char* OUT_OF_RECORDS_RETRY;
|
extern const char* OUT_OF_RECORDS_RETRY;
|
||||||
extern const char* NOT_ENOUGH_TEXT;
|
extern const char* NOT_ENOUGH_TEXT;
|
||||||
@ -220,6 +221,7 @@ void SearchForHooks(SearchParam spUser)
|
|||||||
}
|
}
|
||||||
ConsoleOutput(HOOK_SEARCH_INITIALIZED, addresses.size());
|
ConsoleOutput(HOOK_SEARCH_INITIALIZED, addresses.size());
|
||||||
MH_ApplyQueued();
|
MH_ApplyQueued();
|
||||||
|
ConsoleOutput(MAKE_GAME_PROCESS_TEXT, sp.searchTime / 1000);
|
||||||
Sleep(sp.searchTime);
|
Sleep(sp.searchTime);
|
||||||
for (auto addr : addresses) MH_QueueDisableHook((void*)addr);
|
for (auto addr : addresses) MH_QueueDisableHook((void*)addr);
|
||||||
MH_ApplyQueued();
|
MH_ApplyQueued();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user