code/refactor: Deduplicate sigscan code

> cleanup unnecessary code, should break nothing
> probably will cause merge issues someday
> add missing `replace_pattern_from`
This commit is contained in:
[ ]
2026-01-20 07:56:22 +09:00
parent 1cb5b7b52a
commit 734c762bd6
2 changed files with 40 additions and 75 deletions
+18
View File
@@ -71,4 +71,22 @@ intptr_t replace_pattern(
intptr_t offset,
intptr_t usage);
intptr_t replace_pattern_from(
HMODULE module,
const unsigned char *pattern,
const char *mask,
intptr_t offset,
intptr_t usage,
intptr_t start_from,
const unsigned char *replace_data,
const char *replace_mask);
intptr_t replace_pattern_from(
HMODULE module,
const std::string &signature,
const std::string &replacement,
intptr_t offset,
intptr_t usage,
intptr_t start_from);
bool get_pe_identifier(const std::filesystem::path& dll_path, uint32_t* time_date_stamp, uint32_t* address_of_entry_point);